Home / Articles / The Elements of Table Styles

The Elements of Table Styles

Contents

  1. The Elements of Table Styles
  2. Definining a New Style

Article Description

Although programs like Adobe GoLive removed the need for hand-coding the HTML, tables can still be time consuming to edit and tweak while you're working on a Web project. This is especially true when you're prototyping ideas and need to move quickly. To save time and frustration, GoLive 5 introduced Table styles, a tool for applying cell and row colors, text formatting, and other information with a single click. Luxury!

From the author of

Real World Adobe® GoLive® 5

Real World Adobe® GoLive® 5

$44.99

Definining a New Style

First, use GoLive's table-editing tools to set up the appearance of your table. Change cell colors, format dummy text, and specify the values for cell padding, cell spacing, border thickness, alignment, and other variables. When you're finished, go back to the Table palette and click the New button. Name your style, then click the Capture button. (If you hit Capture before creating a new style, the existing table formatting overrides the currently-selected style, so be sure to hit that New button first.)

Styles can also feature repeating formatting throughout tables, no matter how large or small they are. For example, you can set up a style that has an orange column, a yellow column, and a white column, then alternates across the rest of the table with only yellow and white columns. This is accomplished using the dark blue lines at the top and left edges of the proxy in the Table palette.

I've set up and captured my style "OrangieYellow" using a three-column table (see Figure 3). The top blue line here extends across the width of the proxy; if I enlarge the Table palette, you can see that the entire pattern repeats. To change the repeating pattern, I dragged the left edge of the blue line so that the line begins in the second column. When I add more columns to the table and then click the Apply button in the Table palette, the pattern repeats the way I want it to (see Figure 4).

With my style defined, it's easy to create new tables, or use tables on my existing pages, and apply the style. The only downside to Table styles is that, unlike paragraph styles in a word processor, redefining a style doesn't automatically reapply the style to every table with that definition. You'd still need to go back to your tables and click the Apply button for each instance. But still, you would have saved enough time to finally look into getting central heating for that old shoe.