Lee
Well-known member
I'm making a custom right hand side bar as such, which spans 100% of the height of the forum, over the header too. I have the following html and css;
It works fine in that I have two columns next to each other but, when I resize the browser down the right hand column drops below the left. Is there an easy way to just make the left column a fixed with and have the right hand column scale with the window resize?
HTML:
.container {
width: 100%;
}
.columnLeft {
float: left;
width: 20%;
}
.columnRight {
float: right;
width: 80%;
}
HTML:
<div class="container">
<div class="columnLeft">
<-- Sidebar HTML -->
</div>
<div class="columnRight">
<-- Forum HTML -->
</div>
</div>
It works fine in that I have two columns next to each other but, when I resize the browser down the right hand column drops below the left. Is there an easy way to just make the left column a fixed with and have the right hand column scale with the window resize?