tags:

views:

6196

answers:

4

can you have cellpadding or spacing just on the top/ bottom as opposed to all (T, B, L, R) ?

+2  A: 

CSS?

td {
  padding-top: 2px;
  padding-bottom: 2px;
}
TRF
+1  A: 

Cellspacing is all around the cell and cannot be changed (i.e. if it's set to one, there will be 1 pixel of space on all sides). Padding can be specified discreetly (e.g. padding-top, padding-bottom, padding-left, and padding-right; or padding: [top] [right] [bottom] [left];.

Robert C. Barth
A: 

This might be a little better:

td { padding:2px 0; }

kavoir.com
+1  A: 

There is css:

table { border-spacing: 40px 10px; }

for 40px wide and 10px high

Nathan Moos