O'Reilly logo

Dreamweaver 8: The Missing Manual by David Sawyer McFarland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Formatting Tables

When you first insert a table, you set the number of rows and columns, as well as the table's cell padding, cell spacing, width, and borders. You're not stuck, however, with the properties you first give the table; you can change any or all of these properties, and set a few additional ones, using the Property inspector.

When you select a table in Standard view, the Property inspector changes to reflect that table's settings (see Figure 7-18). You can adjust the table by entering different values for height, width, rows, columns, and so on in the appropriate fields.

When you select a table, you can do everything in the Property inspector from adjusting its basic structure to fine-tuning its appearance. Dreamweaver includes two menus—Table Id and Class—which let you apply a CSS ID selector (see Section 6.6.2) or a class style (Section 6.1.3) to a table.

Figure 7-18. When you select a table, you can do everything in the Property inspector from adjusting its basic structure to fine-tuning its appearance. Dreamweaver includes two menus—Table Id and Class—which let you apply a CSS ID selector (see Section 6.6.2) or a class style (Section 6.1.3) to a table.

In addition, the Property inspector lets you set alignment options and add colors or a background image, as described next.

Aligning Tables

In the normal flow of a Web page, a table acts like a paragraph, header, or any other HTML block-level element. It's aligned to the left of the page, with other elements placed either above it or below it.

But you can make several useful changes to the way a table interacts with the text and other elements around it. After selecting the table, use one of the three alignment ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required