hr element | hr object
[This documentation is preliminary and is subject to change.]
Draws a horizontal rule.
![]() ![]() |
Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
- HTML 4.01 Specification, Section 15.3
HTML information
| Closing Tag | forbidden |
|---|---|
| CSS Display | block |
DOM Information
Inheritance Hierarchy
Remarks
Build date: 3/8/2012
Community Content
Thomas Lee
anomalous - margin, padding, width
1. Padding is fixed at 2px: (But HR is actually offset from its background-color);
2. Padding has no effect, horizontal nor vertical....
3. Width default or width:100% overshoots under the right vertical-Scrollbar about halfway, thus invoking the bottom horizontal-Scrollbar;
(NB. width:99% or margin:-1 does not-have this anomaly.)
4. Margin:-N (ie. negative) does not-outdent HR (Other elements margin can outdent).
5. The anomaly is not, margin, text-indent, left, padding, border, (except as above).

