Scott Andrew - lo-fi acoustic pop superhero!

Join the Demo Club to unlock new music, get discounts, tour dates and other neato stuff:

or learn more here.

May 29, 2002

cellspacing and the DOM

By the way, if you’re using the DOM to generate TABLE elements, you have to use setAttribute() to set the cellspacing and avoid the 2-pixel default spacing given to the table. Oh, and IE5.x stupidly requires that the cellspacing attribute be defined in camelCase: cellSpacing.


var tbl = document.createElement("TABLE");

tbl.setAttribute("cellSpacing","0");

Luckily this works in Mozilla too, so you don’t have fork your code for each browser.

No Comments

Leave a Comment

Get The Tunes

Download Scott Andrew tracks from iTunes Find Scott Andrew at Spotify Find Scott Andrew at Emusic Find Scott Andrew at Lala Find Scott Andrew at Rhapsody Find Scott Andrew at Amazon Find Scott 
Andrew at CD Baby Find Scott Andrew at Napster

More Options

Reader Comments

New Videos

More Videos

Photos

More Photos at Flickr