I want to make a two column layout using DIVs, where right column will have a fixed width of 200px and the left one would take all the space that is left.
It’s quite easy, if you use tables:
<table width="100%">
<tr>
<td>Column 1</td>
<td width="200">Column 2 (always 200px)</td>
</tr>
</table>
But how about DIVs? Is it possible to accomplish this? If yes, then how?
The following examples are source ordered i.e. column 1 appears before column 2 in the HTML source. Whether a column appears on left or right is controlled by CSS:
Fixed Right
Fixed Left
Alternate solution is to use display: table-cell; which results in equal height columns.