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 text to the right side of a page?


How to do it

To align your text to the right side of a page, you first have to wrap your text in paragraph tag's. So, first, place a <P> tag (by the way stands for paragraph, obviously) in front of the text you want to align. Then at the end of the line of text you want to align, place an ending </P> tag. Note the / in the ending tag, this tells the browser to stop aligning the text. This is important to add, or else the browser wont know where to stop aligning, and align all the text after the beginning <P> tag to the left. Get it? Good!

Next, in your beginning <P> tag, add align=right

Example

I want to make the words "John's Home Page" align to the right side of my web page.

My code would look like this:

<P align=right>John's Home Page</P>

Seeing this in the browser will look like this:

John's Home Page


NOTE:   You can also center your text the same way, just replace right with center.


< 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!