Welcome to WebmasterWorld Guest from 23.22.46.195

Forum Moderators: incrediBILL

Tables Spans

Problems with Table span code in browsers

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

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

WebmasterWorld Senior Member 10+ Year Member



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

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 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.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month