News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

HTML - Aligning text and objects around images

Started by ben2ong2, October 03, 2006, 06:17:06 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ben2ong2

The ALIGN attribute of <IMG> tag helps in aligning other elements like text with respect to the image. It can take any of the following values:

TOP: Aligns the image to the top of adjoining object.
MIDDLE: Aligns the text baseline to the middle of the image.
BOTTOM: Text baseline is aligned to the bottom of the image. This is the default value.
LEFT and RIGHT: Image is aligned right of left with text wrapping around it.
ABSMIDDLE, ABSBOTTOM and BASELINE Aligns the image with respect to the middle, bottom or baseline of the text.
TEXTTOP: Aligns the image top with respect to the ascenders of the text. This attribute value is Netscape specific.
CENTER: works same as ALIGN="MIDDLE".
However, a situation might arise when you would like to place only some text, say, a small description, on the left or right side of the image with the rest to flow after the image.

You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login