Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You cannot change the background color of a cell after you use AutoFormat to format the table in Expression Web, in SharePoint Designer 2007, or in FrontPage 2003


View products that this article applies to.

Symptoms

In Microsoft Expression Web, in Microsoft Office SharePoint Designer 2007, or in Microsoft Office FrontPage 2003, you use the AutoFormat feature to format a table. Then, you try to change the background color of a single cell by adding a bgcolor attribute to a <td> tag. When you do this, the background color of the cell does not change.

↑ Back to the top


Cause

This issue occurs because the AutoFormat feature for tables uses Cascading Style Sheets (CSS) to control cell color. For more information about CSS, see the "About styles" topic in the FrontPage Help files.

In Expression Web or in SharePoint Designer 2007, see the following Help topics:
  • Apply a custom style sheet to a SharePoint site
  • Create HTML Editor styles

↑ Back to the top


Resolution

To resolve this issue, customize table background colors by modifying the properties of the table. For more information about how to do this in FrontPage 2003, see the "Set the background properties of a table" topic in the FrontPage Help files.

Note You can also directly edit the HTML code that controls the background color by modifying the table's style attribute. For more information about how to do this in FrontPage 2003, see the "Change properties for an individual HTML tag" topic in the FrontPage Help files.

To customize the background colors of a table in Expression Web or in SharePoint Designer 2007, follow these steps:
  1. Right-click the table, and then click Table Properties.
  2. In the Table Properties dialog box, select a color from the Color palette in the Background area.
  3. Click Apply.
To customize the background colors of a data view, use conditional formatting. For more information about how to do this in FrontPage 2003, see the "Add or remove conditional formatting for a Data View" topic in the FrontPage Help files.

In Expression Web or in SharePoint Designer 2007, see the "Apply conditional formatting to a Data View" Help topic.

↑ Back to the top


Keywords: KB822262, kbprb, kbformat

↑ Back to the top

Article Info
Article ID : 822262
Revision : 5
Created on : 6/13/2007
Published on : 6/13/2007
Exists online : False
Views : 343