| 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.
To control cellpadding in CSS we simply use padding in td column of table row:-
We can use border-spacing for do cellspacing. And below is the code n example of that.
| | |