Defines the properties for an individual table cell.
Browser/User Agent Support
| IE | Netscape | Mozilla | Opera | Safari |
|---|---|---|---|---|
| 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+ |
Example
This example specifies that all table cells should have top and bottom borders, but no left or right borders. It also sets the font-size to one size smaller than the parent element text:
td {
border-bottom: navy solid thin;
border-top: navy solid thin;
border-left: none;
border-right: none;
font-size: smaller;
}
Remarks
Because table cells are children of "table" and "tr" elements, they will inherit some of their styles from those elements.


