I have two columns. One with fixed size (220px) and the other that fills up the remaining space.
<div id="left-panel">
</div>
<div id="main-panel">
Content
</div>
CSS:
#left-panel {
float: left;
width: 220px;
height:auto !important;
height:750px;
min-height: 750px;
border-right: 2px solid #d1d1d1;
padding: 0px 0px 0px 30px;
}
#main-panel {
margin: 20px 20px 0px 280px;
overflow: hidden;
}
The problem is that in Google Chrome the main panel doesn't expand to fill up all the area. It creates a right margin with the width of #left-panel
.
I can't float the main-panel or the content couldn't expand to the width of #main-panel
in the other browsers. Is there any other way to let a floated element fill up the remaining space?
Here is a draw illustrating the problem:
Thanks for your help.