link to content
Essentials at NC State Home
Help | ResNet | Computing@NC State | For OIT Staff | Publications | Search NC State | Feedback
your unity account
antivirus & security
email & messaging
connections & labs
your computer
software@nc state
files
web pages
education & training
publications
other resources
troubleshooting
ITD Sections

Horizontal Rule

<HR> tag attributes

Thickness

A horizontal rule 8 pixels thick is tagged like this:

     <hr size=8>

and appears like this:


Width

You can specify the width of a horizontal rule either in pixels or as a percentage of the page width. The default width of the rule is the page width, resizing as the page is resized.

If you specify a percentage, the rule will resize whenever the page is resized. If you specify a width in pixels, the rule will remain that width, even if the page width is changed.

A line that is half the page width is tagged like this:

     <hr width=50%>

and appears like this:


A line 50 pixels long is tagged like this:

     <hr width=50>

and appears like this:


Alignment

A rule is centered by default, but you can change this with the alignment attribute.

The tagging looks like this:

     <hr width=50% align=right>

and appears like this:


 

Last modified July 20, 2004 by cawalker

jump to content
jump to content Go to page top Page Top | OIT | PolicyDisclaimer