Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,046   Yesterday: 1,235   Max: 1,872   Total: 482,023   Current Users : 15 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

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
previous page<HR SIZE="..."><HR ALIGN="..."> next page


Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.