Rules example page

<hr> Inserts a horizontal rule. Two tone gray in color running the width of the page or element it is inside. Default setting. There is no closing tag for <hr> Looks like this:



size="?" Sets size (height, thickness) of the rule.
Written like this: <hr size="10"> Will look like this:



width="?" Sets the width of the rule.
Written like this: <hr width="200"> Will look like this:



color="#?" Sets the color of the rule- in some browsers - IE4.
Written like this: <hr color="purple"> Will look like this:



align="?" Sets the alignment of the rule: left, center or right.
Written like this: <hr align="right" width="200"> Will look like this:



noshade Creates a rule without a shadow when there is no color attribute.
If color attribute is used you automatically get noshade. Will look like this using noshade, line appears darker gray:



An example using the attributes covered. Looks good in IE browsers and not in Netscape.
Written like this:
<hr size="5" width="300" color="#ff1493" align="center">
Will look like this:



Note: Since color does not work in Netscape 4, the size attribute does not render very well either. It does look good in IE4 browsers and above.


Hope that this helps you...

Author: Joseph Raymond

10th of April, 2001