Combining Tables

For more complex layouts, you may wish to combine tables. You can place combinations of tables and text in another table or you can use multiple tables.

To nest one table in another:

1.
Create the inner table and any text or other elements that should accompany it.
2.
Create the outer table. Determine which cell of the outer table will hold the inner table and type placeholder (or some other easily identifiable text) there as a placeholder.
3.
Test both tables separately to make sure they look the way you want them to.
4.
Replace the word placeholder with the inner table content by copying and pasting (Figure 16.26).
Figure 16.26. Here I’ve created an outer table with a single row. The left column is devoted to a navigation ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.