Forum Moderators: open

Message Too Old, No Replies

Tables Spans

Problems with Table span code in browsers

         

dannibecher

1:34 pm on Feb 6, 2009 (gmt 0)

10+ Year Member



I have recently created a very simple webpage using a table with two column. I have 'spanned' the column at some points to create content acros the whole page. When opened in Firefox, it works perfectly, but IE ignores the spans and formats it in the two columns. I have triple checked the code, which is definately right. Does anyone know why this is?

mattur

1:47 pm on Feb 6, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First step: validate your code [validator.w3.org]

rocknbil

4:07 pm on Feb 6, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Does anyone know why this is?

Besides validation, this

<table>
<tr><td colspan="2"></td></tr>
<tr><td>content</td></td>content</td></tr>
</table>

Can cause some issues, "empty cells" will validate but often not render correctly. The workaround is a non breaking space.

<table>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td>content</td></td>content</td></tr>
</table>

Show us some code, someone will help.