How To Colspan All Columns In HTML

Posted by Weston Ganger

So I needed to make a column span all remaining columns in the row but I didn’t know what number to set it to. Turns out you can set the number to something high like 100 and it will span up to that many columns.

This works in all browsers but does not work if used with table-layout: fixed.


<td colspan=100>This cell spans up to 100 columns<td>


Related External Links:

Article Topic:Software Development - HTML / CSS

Date:November 10, 2016

Recommended Posts