html tutorial - How to set table cellpadding and cellspacing in CSS - html5 - html code - html form
Answer: Use the CSS padding and border-spacing property
You can simply set padding within the table cells victimization the CSS padding property, a tables cellpadding
attribute is valid way to manufacture an equivalent result.
Example
Similarly, you'll use the CSS border-spacing property to use the spacing between adjacent table cell borders just like the cellspacing
attribute. However, so as to work border-spacing
the value of border-collapse property muse be separate
, that is default.