Question - How To Style Table Cells?
Answer -
Margin, Border and Padding are difficult to apply to inline elements. Officially, the
tag is a block level element because it can contain other block level elements (see Basics - Elements).
If you need to set special margins, borders, or padding inside a table cell, then use this markup:
|
yourtext |
to apply the CSS rules to the div inside the cell.