Javascript Reference
Categories: TD

javascript TD colSpan

@March 15, 2008, 1:22 a.m.
colSpanFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  


Specifies the number of columns across which the current table cell should extend itself. For each additional column included in the colSpan count, one less td element is required for the table row. If you set the align property to center or right, the alignment is calculated on the full width of the td element across the specified number of columns. Unless the current cell also specifies a rowspan attribute, the next table row returns to the original column count.

document.getElementById("myTD").colSpan = 2;

Integer, usually 2 or larger.



Powered by Linode.