Home Tutorial CSS CSS table (Table)

MSN Random Online

CSS table (Table) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 03:18

CSS table

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+



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;


When you style table elements, you will usually be setting things like border styles and padding.


Top Members

No top members yet.