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.

<pre>
<code class="language-markup">
<td colspan=100>This cell spans up to 100 columns<td>



Related External Links:

- [Stack Overflow - colspan-all-columns](http://stackoverflow.com/questions/398734/colspan-all-columns)

Article Topic:Software Development - HTML / CSS

Date:November 10, 2016