A table style is a compound style made up a many elements. You can apply a single format for the entire table or format certain elements for a different appearance.

 

After creating a table style, you can select and format each table element by first selecting the element name from the Apply To list in the Style Editor - Table and List toolbar and then applying the desired formatting attributes from the other toolbars. The sample in the table style preview displays your formatting choices. To use the same attributes for all table elements, format the Whole Table and Table Position elements only, as the other elements inherit those settings. Note that setting an attribute for some table elements overwrites the same attribute setting in another element.

 

Table Position: Select this element to set the horizontal position on the web page, the spacing around the table and the minimum size of the table.

Whole Table: This element affects all of the text in all cells in the table and the table caption.

Table Caption: Use this element to format the text and horizontal alignment for the caption. 

Header: Use this element to apply the same format to text and borders for both the Header Row and Header Column elements at the same time. This setting affects the cells in the heading rows and columns only.

 

Note: Header formatting is not applied to a table if the Header option for the table in the web page is set to None in Table Properties.

Header Row: Use this element to apply a format to the cells in the first column of the table only. 

 

Header Row formatting is only applied to a table if either the First Column or Both option for Headers is selected for the table in Table Properties in the web page.

 

Header Column: Use this element to apply a format to the cells in the first row of the table only. Formatting includes the font and font size, text color and text (cell) background color, character formats, and horizontal text alignment.

 

Header Column formatting is only applied to a table if either the First Row or Both option for Headers is selected for the table in Table Properties in the web page.

 

Table Rows: Use this element to apply formatting that affects all table rows except for the Header Column row. 

 

Note: The Header, Header Row, and Header Column element settings overwrite the Table Row, Even Rows, and Odd Rows settings for row and column heading cells. The Cell element settings overwrite all Table Row, Even Rows, and Odd Rows settings for non-heading cells.

Even Rows; Odd Rows: Use these elements to apply formatting that affects even or odd rows only. For example, you may want to assign separate background colors for odd and even rows so that the table data is easier to read. The Border setting is not available for even and odd row elements. Even and odd rows inherit the single border setting from the Table Rows element.

 

Note: When you select the Even Row or Odd Row element, a message informs you that alternating formats for rows in tables are not supported in Internet Explorer 8 or earlier. If your organization uses these browsers, authors and end users do not see the formatting, but they do see the table and its data.

 

Cell: This element applies formatting to all cells in the table, excluding the Header Row, Header Column, and Table Caption.

ProcedureTo create a table style:

  1. From the Style Editor - Styles toolbar, click Add Style Add Style and select Table.
     
  2. Type a name for the style, replacing the <Enter style name here> placeholder text.
     
  3. On the Style Editor - Table and List toolbar, select Apply to and choose the table element you want to format.
     
  4. For each element, select the formatting attributes you want to apply.
     
    Format the Whole Table element first to apply the same font formatting and cell background color to the entire table. To apply the same border style to all elements, select the Apply to All Table Elements option in the Border dialog box.

Table of Contents  Back

Format_table_styles