Introduction:
You may be familiar with the HTML 'cellpadding' attribute of the
'table' tag. This attribute creates space inside of a table cell so that
you get a nice bit of white space, or "padding", between your element
and the sides of the table.Well, there isn't actually a CSS 'cellpadding' property or attribute, but there is the CSS padding
property which allows you to achieve the same effect - and more. You
can use this property to set the padding on your table cells. You can
even set different padding for each side of the cell. Furthermore, you
can use this property on most elements - you're not limited to table
cells.