Nate Pet Nate Pet - 1 month ago 5
HTML Question

HTML table needs spacing between columns, not rows

I have an HTML table.
I need to have spacing between the table columns, but not the table rows.

If I use the

cellspacing
css property it does it between both rows and columns. I also cannot use css in what I doing. I need to use pure html

Answer

If you can use inline styling, you can set the left and right padding on each td.. Or you use an extra td between columns and set a number of non-breaking spaces as @rene kindly suggested.

http://jsfiddle.net/u5mN4/

http://jsfiddle.net/u5mN4/1/

Both are pretty ugly ;p css ftw

Comments