Knowledge Base

BUG: Multiple Cells in an HTML Table Cannot Be Aligned at Once

Article ID: 194002

Article Last Modified on 3/16/2005


APPLIES TO


This article was previously published under Q194002

SYMPTOMS

When you attempt to align text in an HTML table and multiple cells are selected, nothing happens when you click on the alignment buttons on the HTML Toolbar.

CAUSE

The HTML table does not allow text in multiple cells to be aligned at the same time in Design View using the alignment buttons on the HTML toolbar.

RESOLUTION

Align the text in the cells one at a time in Design View or edit the HTML source code directly.

For example, the following code is generated when an HTML table with one row and three columns is inserted on a page:
   <TABLE border=1 cellPadding=1 cellSpacing=1 width=75%>

       <TR>
           <TD>x</TD>
           <TD>y</TD>
           <TD>z</TD></TR></TABLE>
				
To align all the cells in the row at once, edit the code as follows:
   <TABLE border=1 cellPadding=1 cellSpacing=1 width=75%>

       <TR align=center>
           <TD>x</TD>
           <TD>y</TD>
           <TD>z</TD></TR></TABLE>
				

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

Keywords: kbbug kbide KB194002