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.


