Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

Set cellpadding and cellspacing in CSS?

For controlling "cellpadding" in CSS, you can simply use padding on table cells. E.g. for 10px of "cellpadding":

td { 
    padding: 10px;
}
For "cellspacing", you can apply the border-spacing CSS property to your table. E.g. for 10px of "cellspacing":

table { 
    border-spacing: 10px;
    border-collapse: separate;
}
This property will eve
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Set #cellpadding #cellspacing
ADD COMMENT
Topic
Name
1+7 =