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



The information in this article applies to:

  • Microsoft FrontPage 2002

This article was previously published under Q296840

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.

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.

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.

STATUS

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

Modification Type:MajorLast Reviewed:6/28/2004
Keywords:kbbug kbnofix KB296840