I need CSS definitions for the following layout:
<div id="middle-wrapper">
<div id="column1-wrapper">
This has to be 100% - 250px wide
</div>
<div id="column2-wrapper">
This has to be 250px wide
</div>
<!-- no other markup in middle-wrapper except maybe a clearing div -->
</div>
middle-wrapper
needs to be 100% widecolumn2-wrapper
needs to be 250px widecolumn1-wrapper
should take all available space
In summary, column1-wrapper
should be 100% - 250px wide and I need both of the columns to look like columns.
I've tried adding float: left
to BOTH columns. However this means column1-wrapper
looses its width. On pages that do not contain enough content in the left column, the right column aligns itself with the left column and ends up somewhere in the middle of the page:
----------------------------------------------------------------
| LEFT NO WIDTH COLUMN|| RIGHT 250 PX|
----------------------------------------------------------------
I've tried adding float: left
to LEFT column and float: right
to RIGHT column. That aligns the right column with the right edge but the left column does not stretch appropriately:
----------------------------------------------------------------
| LEFT NO WIDTH COLUMN| | RIGHT 250 PX|
----------------------------------------------------------------