Chapter 9: Tables | |||||||
|
|||||||
In earlier editions of this book, I tried to stick to the straight and narrow of table design by explaining how to use them only in the context of tabular data. However, what most people use tables for has nothing to do with columns of numbers. So Ive completely revamped this chapter in order to show you how to use tables in a non-standard wayto create multicolumn text, captions for images, sidebars, and more.
Tables might seem a bit daunting at first, especially when used for layout. However, if you carefully map out your page (see page 144) before you start in on the HTML code, your life will be a lot easier. The second most important step is to specify the width of the whole table as well as of the individual cells (see page 148). Setting the width keeps the tables size constant (instead of letting the browser figure it out in its own indomitable way) and keeps your elements the way you intended. If tables really make you miserable, you can cheat. You can use PageMill or FrontPage or some other Web page program, create the table in that program, and then tweak the HTML code by hand afterwards as necessary. If you do want to use tables for displaying rows and columns of tabular data, consult the end of this chapter (see pages 160165) for some special tools for structuring that data and consolidating the formatting. |
|||||||
Figure 9.1 Tables let you create fancy professional-looking layouts that will wow your visitors. | |||||||