Denise has attended:
Dreamweaver 8 Intermediate course
Nesting tables
Hi,
I'd like to know more about nesting tables. I assume in theory thers's no limit but in practice would it be sensible to make the outer table two or three sections, then make tables within that- but those tables mainly without nesting within. Perhaps 3-4 layers of nesting at most?
Thanks,
Denise
RE: Nesting tables
Hi Denise,
Yes, what you've said is generally correct. You shouldn't need to go past 2 or 3 depths.
The use of nesting tables is useful and a method that many web developers use to gain control over positioning without having to revert to absolute positioning of web site elements.
When you say 'sections', I assume you mean rows or columns.
Sometimes it's not always best to nest tables. Our current web site design has a two blue navigation bars at the top, and each one is a separate table, at 100% width. This is instead of using one massive table with three or four 'rows'.
We have designed it this way to be flexible in case we need to add columns to a particular section of the web site... because the other rows would then need COLSPAN parameters. As long as each table is 100%, it will still look okay.
You may also be interested in learning more about using CSS, which is a more modern way to layout elements on your web pages. But in using this method you may be alienating visitors with older browsers.
Regards, Rich