Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a stylesheet class that can change a table's cellspacing a

Status
Not open for further replies.

Plato2

Programmer
Dec 6, 2002
192
US
How to make a stylesheet class that can change a table's cellspacing and cellpadding?

Thanks in advance!
 
If you plan on using it more than once:
Code:
.tdpadding {
    margin: 1px 2px 3px 4px; 
    padding: 1px 2px 3px 4px;
}

// padding: (top)px (right)px (bottom)px (left)px

change the value for each as needed, if you want all to be same value:

Code:
.tdpadding {
    margin: 0px
    padding: 3px;
}

This makes it all sides ( top , bottom, left, right ) the same.

If you are planning to use it once:

Code:
#tdpadding {
    margin: 0px
    padding: 3px;
}
[code]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top