Hi.
I have a wrapper, in that I have two upper divs, both floated to the left so they are in line.
Under the two divs I want to do the exact same thing so under those two divs I have another two divs.
The problem is that they wont float correctly, the div just stays under the div and dosen't float as I want it to.
HTML:
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="css/styles.css"rel="stylesheet" type="text/css"> </head> <body> <div id="wrapper"> <div id="social"> <ul> <li><a href="http://www.twitter.com/kvnwpts"><img src="images/Twitter.jpg" width="65" height="61" border="0" /></a></li> <li><a href="https://www.facebook.com/profile.php?id=100003071417669"><img src="images/Facebook.jpg" width="65" height="61" border="0" /></a></li> <li><a href="http://www.youtube.com/kwpvideos"><img src="images/Youtube.jpg" width="65" height="61" border="0" /></a></li> </ul></div> <div id="logodiv"> <img id="logotyp" src="images/logo.png" width="491" height="64" /> </div> <div id="one"> </div> <div id="two"> </div> </div> </body> </html>
And the CSS:
Any help is appriciated.Code:body {background-image:url(../images/rutn%C3%A4t.jpg); } #wrapper {width:980px; height:800px; margin-left:auto; margin-right:auto; } #social { float:left; width:300px; height:100px; } #logodiv {float:left; width:680px; height:100px; } #social ul { } #social ul li { display:inline; padding-left:15px; } #logotyp {margin-left:50px; margin-top:20px; } #one { clear:both; float:left; width:400px; float:left; height:200px; background-color:#FF9966 } #two { width:400px; float:left; height:200px; background-color:#9C0 }



Reply With Quote





Bookmarks