Creating a horizontal fluid layout in css that works like a table
Posted
by ivordesign
on Stack Overflow
See other posts from Stack Overflow
or by ivordesign
Published on 2010-03-22T10:38:53Z
Indexed on
2010/03/22
10:41 UTC
Read the original article
Hit count: 584
Basically what i am after is a fluid solution in css, that is similar to the table layout below.The principal behind this layout is 3x3 grid where by a user can add content into the first fluid area and it will expand the complete width of the page. But if that user decides that he wants content in the 2nd and 3rd area, all 3 td's fill up 33% of the width.
Effectively what i am asking is how do i create a css based layout that can do the same as the table layout?
<table width="100%">
<tr>
<td id="leftZone" >
fluid area here
</td>
<td >
fluid area here
</td>
<td id="rightZone">
fluid area here
</td>
</tr>
</table>
<table width="100%">
<tr>
<td valign="top" >
fluid area here
</td>
<td >
fluid area here
</td>
<td >
fluid area here
</td>
</tr>
</table>
<table width="100%">
<tr>
<td >
fluid area here
</td>
<td >
fluid area here
</td>
<td >
fluid area here
</td>
</tr>
</table>
© Stack Overflow or respective owner