Html Tips and Tricks

Tuesday, June 15, 2004

Align Text/Images

To align text to the right insert this code:
<p align=right>aligning text with this tip</p>
It will create this:

aligning text with this tip


If you would like to align the text to the left or center instead, change the right to left or center.
More tips for formatting text
Learn how to justify text here
...to align images use the following html tip:

Here is a normal image:
html code=
<img src=http://www.google.com/images/logo.gif>
output=

Here is an image aligned to the right:
html code=
<img src=http://www.google.com/images/logo.gif align=right>
output=


To make an image centered, change the right to center.
You can also change the right to left.
Make sure you check out the various other html tips on images!


NEED EXTRA HELP? HAVE A SUGGESTION? HAVE SOMETHING TO ADD? PLEASE POST COMMENTS WHILE LOOKING AT ALL THESE USEFUL HTML TIPS AND TRICKS. THANK YOU!

13 Comments:

Post a Comment

<< Home


Hit Counter