hello, I am trying to float 3 left boxes and 3 right boxes, it works fine in IE but in FF the right boxes get shoved down. Here is my code. I am pretty new to floats so I must be doing something wrong obviously.
Thanks for your help!
<!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" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<style>
}
.drg #container {
}
.drg #logoheader {
float: left;
width: 260px;
height: 137px;
background: #123456;
}
.drg #logoheader1 {
float: left;
width: 260px;
height: 137px;
background: #135790;
clear: left;
}
.drg #logoheader2 {
float: left;
width: 260px;
height: 137px;
background: #246890;
clear: left;
}
.drg #logoheader3 {
float: right;
display:inline;
width: 260px;
height: 137px;
background: #357890;
}
.drg #logoheader4 {
float: right;
width: 260px;
height: 137px;
background: #468910;
clear: right;
}
.drg #logoheader5 {
float: right;
width: 260px;
height: 137px;
background: #678910;
clear: right;
}
</style>
</head>
<body class="drg">
<div id="container">
<div id="logoheader">ee</div>
<div id="logoheader1">ee</div>
<div id="logoheader2">ee</div></div>
<div id="logoheader3">ee</div>
<div id="logoheader4">ee</div>
<div id="logoheader5">ee</div></div>
</div></div>
</body>
</html>
|