kcwong said:
No, don't do it with tables. That's bad style - hard to maintain, hard to modify. Use Cascading Style Sheet (CSS) instead.
See
http://www.fu2k.org/alex/css/layouts/3Col_NN4_FMFM.mhtml
For a better example. I google'd "CSS Columns" and found it.
I agree with you, but if somebody is asking about tables, I think using CSS to that extent is a little heavy.
I would use tables, but dont use 1 big table for the full page, the reason for this is that the colspan and rowspan attributes can create very complex tables that are sometimes hard to understand. A simpler method would be to use a layered cake method, in which case you would have two tables stacked on top of each other such as this -
Table 1 -
would be -
Code:
<table>
<tr>
<td>LOGO</td>
</tr>
<tr>
<td>LOGO</td>
</tr>
</table>
and then Table 2, which would 'stack up' beneath table 1 would be -
Code:
LEFT | CENTER | RIGHT
TITLE |CONTENT | TITLE
Link |CONTENT | Link
Link |CONTENT | Link
which would be...
Code:
<table>
<tr>
<td>TITLE</td>
<td>CONTENT</td>
<td>TITLE</td>
</tr>
<tr>
<td>Link</td>
<td>CONTENT</td>
<td>Link</td>
</tr>
<tr>
<td>Link</td>
<td>CONTENT</td>
<td>Link</td>
</tr>
</table>
These would then stack up layer by layer creating the same end result on the page, but avoiding the potentialy confusing rowspan and colspan attributes. While this is straightforward, it does have its drawbacks - each cell accross the rows will always be the same hight, be that the smallest cell of the row, or a hieght that you set it to - there is no way out of this using this method.
A more complex, but much better and flexible way to build the bottom table in the layered cake would be to use a single row, 3 column table (therefore 1 x 3 cells) and then put a nested table in each of the three cells. Its worth readin up, do a search for nested tables tutorial on google and read it.
heres a basic example -
Code:
<table>
<tr>
<!-- BEGIN LEFT CELL -->
<td>
<table>
<tr>
<td>Link</td>
</tr>
<tr>
<td>Link</td>
</tr>
<tr>
<td>Link</td>
</tr>
</table>
</td>
<!-- END LEFT CELL -->
<!-- BEGIN MIDDLE CELL -->
<td>
<table>
<tr>
<td>CONTENT</td>
</tr>
<tr>
<td>CONTENT</td>
</tr>
<tr>
<td>CONTENT</td>
</tr>
</table>
</td>
<!-- END MIDDLE CELL -->
<!-- BEGIN RIGHT CELL -->
<td>
<table>
<tr>
<td>Link</td>
</tr>
<tr>
<td>Link</td>
</tr>
<tr>
<td>Link</td>
</tr>
</table>
</td>
<!-- END RIGHT CELL -->
</tr>
</table>
I havent checked but I hazard a guess that is the method used for the CFC index page.