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 

Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts