awsomejoe23
01-22-2008, 03:00 AM
I have three divs, two floating next to each other, then one plain. I can't seem to find out why the plain one is on top of the two floating ones though.
Here's my code
.MainDiv {
width: 1024px;
padding: 4px;
margin: 2px;
}
.FeedBoxLeft {
float:left;
margin: 2px;
margin-right: 5px;
width: 475px;
border-style: solid;
border-width: 1px;
border-color: #7f97a9;
clear: left;
}
.FeedBoxRight {
float:right;
margin: 2px;
margin-left: 5px;
width: 475px;
border-style: solid;
border-width: 1px;
border-color: #7f97a9;
clear: right;
}
p {
font-size: 12px;
}
<html>
<head>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<div class="MainDiv">
<div class="FeedBoxLeft">
<p>
Feed will go here
</p>
</div>
<div class="FeedBoxRight">
<p>
Feed will go here
</p>
</div>
</div>
</body>
</html>
Thank you for your help,
Joe
Here's my code
.MainDiv {
width: 1024px;
padding: 4px;
margin: 2px;
}
.FeedBoxLeft {
float:left;
margin: 2px;
margin-right: 5px;
width: 475px;
border-style: solid;
border-width: 1px;
border-color: #7f97a9;
clear: left;
}
.FeedBoxRight {
float:right;
margin: 2px;
margin-left: 5px;
width: 475px;
border-style: solid;
border-width: 1px;
border-color: #7f97a9;
clear: right;
}
p {
font-size: 12px;
}
<html>
<head>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<div class="MainDiv">
<div class="FeedBoxLeft">
<p>
Feed will go here
</p>
</div>
<div class="FeedBoxRight">
<p>
Feed will go here
</p>
</div>
</div>
</body>
</html>
Thank you for your help,
Joe