Text Links Ads : Marketing Tips Store : Search Engine Optimization Strategies
WebPosition Gold Pro : Domain Registration Bank : Optilink Software : GoDefy
Mike's Marketing Tools : Mike's Ecommerce Software : Text Links Guide
 
Web HTML-HTML.com
You are here: HTML Codes > Lines and Paragraphs > <HR ...>

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.

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

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

<HR ALIGN="..."> >>>

Copyright © 2002-8 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com