Floating left and right


#1

It gives me the message" Did you remember to float .left to the left?"


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

CSS -
div {
border-radius:5px;
z-index:1;
width:50px;
height:50px;
position:fixed;
background-color:red;
}
.left {
float:left;
}

.right {
float:right;
}


#2

can you post your full html and css code?


#4

you will need to use markup to make html code show:

anyway, i found what i was looking for, float doesn't work for elements with position fixed, all your divs are fixed due position: fixed; inside your div css selector


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.