Home Tutorial CSS CSS th (Table Header)

MSN Random Online

CSS th (Table Header) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 03:21

CSS th

Defines the properties for a table header cell.

Browser/User Agent Support

IE Netscape Mozilla Opera Safari
2.0+ 1.1+ 1.0+ 4.0+ 1.0+



This example specifies that all table header 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:

th {
border-bottom: navy solid thin;
border-top: navy solid thin;
border-left: none;
border-right: none;
font-size: smaller;


Because table header cells are children of "table" and "tr" elements, they will inherit some of their styles from those elements.


Top Members

No top members yet.