Welcome to WebmasterWorld Guest from 54.159.50.111

Forum Moderators: incrediBILL

Message Too Old, No Replies

Tables Spans

Problems with Table span code in browsers

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

New User

5+ Year Member

joined:Dec 29, 2008
posts:27
votes: 0


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?
1:47 pm on Feb 6, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 29, 2002
posts:980
votes: 0


First step: validate your code [validator.w3.org]
4:07 pm on Feb 6, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


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.