hr element | hr object (Internet Explorer)

Switch View :
ScriptFree
hr element | hr object

[This documentation is preliminary and is subject to change.]

Draws a horizontal rule.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 15.3

Standards information

HTML information

Closing Tagforbidden
CSS Displayblock

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     hr

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).