Home Tutorial CSS CSS hr (Horizontal Rule)



MSN Random Online

CSS hr (Horizontal Rule) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 03:08

CSS hr

Defines the properties for a horizontal rule.

Browser/User Agent Support

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

Example

 

This example styles an hr element:


hr {
color: red;
padding-top: 10px;
padding-bottom: 10px;
}

Remarks

You can use CSS styles to change things such as the the color and amount of padding around a horizontal rule.

 
 

Top Members

No top members yet.