Home Tutorial CSS CSS h2 (Heading 2)



MSN Random Online

CSS h2 (Heading 2) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 03:03

CSS h2

Defines the properties for a Heading 2 element.

Browser/User Agent Support

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

Example

 

This example styles an h2 element:


h2 {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 20pt;
color: navy;
padding-top: 12px;
padding-bottom: 3px;
}

Remarks

You can specify different amounts of padding above and below a heading to group it visually with other elements.

 
 

Top Members

No top members yet.