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 an image with text?


How to do it

There's 3 ways of aligning images with text, top, middle, or bottom.

To do this, in your image tag, place a ALIGN="?". Replacing the ? with either top, middle, or bottom.

Finally, you place the text that you want to align the image with, after the image tag.

Your code should look something like this:

<IMG SRC="IMAGE GOES HERE.GIF" ALIGN="top">  Your Text Goes Here

The browser will align the text with that image.

EXAMPLE

<IMG SRC="CLOWN.GIF" ALIGN="top">  TOP ALIGNED
TOP ALIGNED



<IMG SRC="CLOWN.GIF" ALIGN="middle">  MIDDLE ALIGNED
MIDDLE ALIGNED



<IMG SRC="CLOWN.GIF" ALIGN="bottom">  BOTTOM ALIGNED
BOTTOM ALIGNED


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