Hello, I was just going through the Responsive Web design (Beta) Step 49 of the color markers.
From what I understood the instructions tell to change the background-color
property to background
property:
In the
.red
CSS rule, change thebackground-color
property tobackground
.
I tried a few times but it keeps on saying an error:
Sorry, your code does not pass. Don’t give up.
Hint
Your.red
CSS rule should have abackground
property with the valuergb(255, 0, 0)
.
I have made sure I’m doing the code correctly, so I wanted to know if it is a problem with my code or with the lesson.
My Code(css):
h1 {
text-align: center;
}
.container {
background-color: rgb(255, 255, 255);
padding: 10px 0;
}
.marker {
width: 200px;
height: 25px;
margin: 10px auto;
}
.red {
background: rgb(255, 0, 0); /* The problem */
}
.green {
background-color: #007F00;
}
.blue {
background-color: hsl(240, 100%, 50%);
}
Html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Colored Markers</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>CSS Color Markers</h1>
<div class="container">
<div class="marker red">
</div>
<div class="marker green">
</div>
<div class="marker blue">
</div>
</div>
</body>
</html>
I have tried resetting the challenge many times and also reloading the page.
The link: