Defines the properties for a table.
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 tables 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:
table {
border-bottom: navy solid thin;
border-top: navy solid thin;
border-left: none;
border-right: none;
font-size: smaller;
}
Remarks
When you style table elements, you will usually be setting things like border styles and padding.


