O'Reilly logo

Dreamweaver CS5: 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, the Property inspector changes to reflect that table’s settings (see Figure 7-5). You can adjust the table by entering different values for 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 on the far left and Class on the far right—which let you apply a CSS ID selector or a class style (page 112) to a table.

Figure 7-5. 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 on the far left and Class on the far right—which let you apply a CSS ID selector or a class style (page 112) 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. Browsers align it to the left of the page, with other elements placed either above or below it.

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

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