WD2000: HTML Table Caption Has Border When File Opened in Word (221264)
The information in this article applies to:
This article was previously published under Q221264 SYMPTOMS
When you open an HTML file in Microsoft Word 2000 that contains a table with a border and a caption, the caption has a border. In contrast, if you open the same file in a Web browser, the table caption does not have a border.
For example, if you create the following HTML code in a Notepad file and save the file as a text document with the "htm" extension:
<HTML>
<BODY>
<TABLE BORDER> <CAPTION> Caption for Table A </CAPTION>
<TR>
<TD>Text</TD>
<TD>A B C</TD>
<TD>What a test!</TD>
</TR>
</TABLE>
</BODY>
</HTML>
when you open the HTML document in Microsoft Word, the caption at the top of the table is bordered, as in the following example:
Caption for Table A
|
Text
|
A B C
|
What a test!
|
CAUSE
Word converts the caption into a table cell and applies the border to it.
WORKAROUND
If you do not want the border around the caption, but you plan to share the file by using a Web browser, you do not need to do anything. The caption will appear above or below the table, without a border, when opened in a Web browser.
If you plan to share the file with other Word users and you do not want the caption to appear inside a bordered table cell, place the caption outside of the table. To do this, follow these steps:
- Open the file in Word.
- Select the table caption row and delete it. On the Table menu, point to Delete, and then click Rows.
- Insert a new caption. To do this, click Caption on the Insert menu.
- In the Caption dialog box, type the caption you want. Select the options you want and then click OK.
- Save the file.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. MORE INFORMATION
The caption is an HTML element that can be placed immediately after the table tag. In HTML, a caption appears either above or below the table.
Modification Type: | Major | Last Reviewed: | 11/25/2002 |
---|
Keywords: | kbbug KB221264 |
---|
|