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.

FP2002: Cellspacing/Cellpadding Attributes Removed from Table When Using Default Values


View products that this article applies to.

This article was previously published under Q296840

↑ Back to the top


Symptoms

When you attempt to change the cellspacing attribute of a table to 2 pixels or the cellpadding attribute to 1 pixel, the respective attribute is removed entirely.

↑ Back to the top


Cause

This behavior occurs if you set the value for the attribute to its default setting. FrontPage removes the attribute and value because it is redundant.

↑ Back to the top


Workaround

To work around this behavior, change attribute values in the HTML source. To do this, follow these steps:
  1. Create a new page in FrontPage and insert a table. On the Table menu, point to Insert, and then click Table. Choose the options you want and click OK.
  2. Right-click the table and then click Table Properties on the menu that appears.
  3. In the Cell spacing and Cell padding boxes, type 0, then click OK.
  4. Switch to HTML view.
  5. Locate the cellspacing and the cellpadding attributes for the table. The code will look similar to the following:
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber1">
  6. Change the cellpadding and cellspacing attribute values, so that your code looks similar to the following:
    <table border="1" cellpadding="1" cellspacing="2" style="border-collapse: collapse" width="100%" id="AutoNumber1">
  7. Switch back to Normal view.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


Keywords: KB296840, kbnofix, kbbug

↑ Back to the top

Article Info
Article ID : 296840
Revision : 3
Created on : 1/31/2007
Published on : 1/31/2007
Exists online : False
Views : 265