Html css

How To Colspan All Columns In HTML

Posted by Weston Ganger on November 10, 2016

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:


Posted in HTML / CSS and Tagged with table 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts