I have a very simple two column setup shows below.
However in example one where I have the two column setup the #left and #right divs will float above the #posts container.
Example 2 does not float like this but is not the two column setup I am looking for. Suggestions?
div#posts
{
width: 700px;
margin: 0 auto;
margin-top: 5px;
margin-bottom: 0px;
padding: 5px;
border: 1px solid #CCC;
background-color: #EEE;
}
div#left {
float:left;
width:100px;
background:#EEE;
}
div#right {
float:right;
width:500px;
background:#EEE;
}
<!-- example 1
<div id="posts">
<div id="left">post</div>
<div id="right">post</div>
</div>
<!-- example 2
<div id="posts">
<div>post</div>
<div>post</div>
</div>