1.

Why we use cellpadding and cellspacing in CSS with some example?

Answer»

Why we USE cellpadding and cellspacing in CSS with some EXAMPLE?
In CSS we use cellpadding and cellspacing for page or any element display setting this is basically used for page display and settings. Here in below example we have APPLIED both of these properties to table.


TableBaseCss

TableCss output
To control cellpadding in CSS we simply use padding in td COLUMN of table row:-



TDCss Code


TDCss output
We can use border-spacing for do cellspacing. And below is the code N example of that.


Table CSS Code

Table CSS output



Discussion

No Comment Found