Css Trouble


#1



So, even though I've added ids and classes to the css tab, the lesson still won't let me through...here's my code:


.header {
    height: 5px;
    width: 5px;
    background-color: red;
}
#left {
    height: 5px;
    width: 5px;
    background-color: orange;
}
#right {
    height: 5px;
    width: 5px;
    background color: yellow;
}
.footer {
    height: 5px;
    width: 5px;
    background-color: green;
}


<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
	    
	</head>
	<body>
	    <div id="header"></div>
	    <div class="left"></div>
	    <div class="right"></div>
	    <div id="footer"></div>
	</body>
</html>

The first one was for css, the second one was for html.


#2

Okay you got it mixed up

For class you need to use .
For Id you need to use #

You have it the other way around :wink: