I'm trying to create a two column layout with a fixed width column on the left, and a responsive column which takes up the remaining space on the right. Here's an example:
<div>
<div style="width:120px"></div>
<div></div>
</div>
I've been working on this for a while now, but I can't seem to get it to work. Help would be greatly appreciated. Thanks!
There is a simple solution using No TABLES and table styles with float and margin:
.sidebar {
width: 200px;
float: left;
}
.content {
margin-left: 200px;
}
Example: http://jsfiddle.net/NrFLf/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With