View Full Version : Leor Zahavi - looking for CSS help

06-06-2012, 11:30 AM
Hello everyone,

Can anybody suggest me the right way to control cellpadding and cellspacing in a CSS spreadsheet to obtain the similar results while putting the attributes on the table tag? waiting for your reply.

Leor Zahavi

06-06-2012, 02:57 PM
The CSS equivalent to cellspacing is border-spacing. It can take one or two values. If one value is specified it applies to all sides of the cell, if two are specified, the first sets the horizontal spacing and the second the vertical spacing.

The CSS equivalent to cellpadding is simply padding (and all its derivates like padding-top etc.) applied to the table cells (i. e. td {…} or th {…}).