| • Table Terminology • Ways to Use a Table • Tables and Navigation Bars • Borderless Tables • | |||
Tables are the key to successful web page design; as a way to affect layout they are much more useful and versatile than frames. Tables are:
|
|||
You will want to use tables when you present content in a grid. But the power of tables is more obvious when you eliminate the table borders.You can use tables to align text in columns.You can use tables to force the browser to align text and images the way you want them to appear on a page. You can exert even more control on your layout with nested tables (i.e., tables within tables). |
|||
| Table Terminology | |||
Here are some common table terms:
|
|||
| Ways to Use a Table | |||
You can easily think of many ways to use a table on a web page.
|
|||
| Tables and Navigation Bars | |||
Web developers often use tables to organize their navigation bars. Here is the easiest way to turn a table into a nav bar:
|
|||
Example: |
|||
|
|||
| Borderless Tables | |||
Borderless tables are even more
versatile. You might:
|
|||
Example:
|
|||
More importantly, you can use borderless tables to help you align text and graphics on your page. By placing text in one table cell and a graphic in another, you can exert more control over your layout than you would with the ALIGN attribute in the IMG SRC tag. |
|||
You can also use borderless tables to force margins around your web page. I generally create a one-cell borderless table and set the width at about 90-95% of the monitor screen. Then I center the table. I will often put a table within this table to better control my layout. |
|||
When you are using tables to force a particular layout, you will need to tinker with your file by adjusting the table and cell properties. Save and preview the file after every adjustment. |
|||
Unfortunately, different browsers and even different versions of the same browser often interpret table codes in different ways. Therefore it is especially important for you to preview your pages that contain tables in more than one browser. |
|||
| • Overview • Create a Basic Table • Set Table Cell Properties • Experiment with Table Design • |