top left
The HTML Source Logo


 html
Top Right
    
 Getting StartedHow Do I...TroubleShootingPromotionContact Us
 html
HTML
SEARCH THE SITE
advanced search



CATEGORIES
Home
Getting Started
HTML Cheat Sheet
Webmaster Tools
HTML Help Forum
Color Codes
Link to us









































bottom
HTML HTML HTML HTML
How do I align my horizontal rule?


By default, horizontal rules are automatically centered, some like this, some don't, this is for those who don't.

How to do it

To align a horizontal rule, in your <HR> tag, type ALIGN="?"

Next replace the ? with the way you want the horizontal rule aligned (left,center, or right).

So your whole code should look something like this:

<HR ALIGN="?">


EXAMPLE

<HR WIDTH="50%" ALIGN="left">
Would look like this:




<HR WIDTH="50%" ALIGN="center">
Would look like this:




<HR WIDTH="50%" ALIGN="right">
Would look like this:







< BACK







Company   |   Careers   |   Partners   |   Advertising   |   Help
Privacy Policy   |   Trademark Notices   |   User Agreement
© 2001 TheHTMlSource.com, INC. All Rights Reserved.



Site hosted by Angelfire.com: Build your free website today!