for two column you don't need to float both divs. Let's say you have a left sidebar of 200px and a main content.
your code would be:
Code:
<div id="page">
<div id="sidebar">My left sidebar</div>
<div id="content">My main content</div>
</div>
and the css:
Code:
#sidebar {
width: 200px;
float:left;
}
#content {
margin-left: 200px;
}
the margin-left is to prevent the content div to wrap around the sidebar if it expands beyond the height of the sidebar... i hope you understand. I'm not really good at explaining stuff.
|