Attribute for <HR ...>
WIDTH = "width expression"

Usage Recommendation
use it, but don't rely on it

WIDTH sets the horizontal width of the rule. You can express the size in pixels or as a percentage.

These <HR ...>'s are set with pixel widths:

<HR WIDTH="50">
<HR WIDTH="100">
<HR WIDTH="300">

gives us

WIDTH is usually expressed as a percentage. If you use a percentage width, be sure to enclose the value in quotes.

<HR WIDTH="25%">
<HR WIDTH="50%">
<HR WIDTH="100%">

gives us

The default is 100%. By default the rule is centered. To set a different alignment use ALIGN.

Percentage widths use the percentage of the available width, not the full width of the page. For example, if the rule is in a table then the width is a percentage of the width of the table cell.

<TD>Hey, whatever dude!
<HR WIDTH="50%">
A stitch in time saves nine

gives us
Hey, whatever dude!
A stitch in time saves nine

About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.