 |
|
| ALIGN (attribute) - alignment values |
|
| Description |
|
The ALIGN attribute specifies the position of an image or applet file, whether it be in the page or at element level (e.g. in a table cell). |
|
| Syntax |
|
<IMG SRC="fileName" ALIGN="LEFT|RIGHT|TOP|ABSMIDDLE|MIDDLE|BOTTOM|BASELINE"> (when used with IMAGE tag for example) |
|
|
| Attributes |
|
ALIGN is an attribute, so here are the possible values for it. |
|
LEFT aligns the applet/image with the left margin. Other content will flow around on the right. To make content appear below the applet/image, use <BR CLEAR>. |
|
RIGHT aligns the applet/image with the right margin. Other content will flow around on the left. To make content appear below the applet/image, use <BR CLEAR>. |
|
TOP aligns the applet/image vertically with the tallest item on the current line. Only one line of content is aligned with the applet/image, further content lines in the same block-level element will appear below the applet/image. If there isn't any content in the same block-level element, then the remainder of the content will be aligned on the left. |
|
ABSMIDDLE aligns the middle of the applet/image vertically with the verticle middle of other content on the current line. The content is moved down from it's normal position in the page to accommodate the alignment. One line of content is aligned with the applet/image, with following lines of content appearing below the applet/image. If the applet/image isn't surrounded by content in the same block-level element, then it is aligned on the left. |
|
MIDDLE aligns the middle of the applet/image vertically with the bottom of other content on the current line. The content is moved down from its normal position to accomodate the alignment. Only the current line of content is aligned with the applet/image, other lines of content appear below the applet/image. If the applet/image isn't surrounded by content in the same block-level element, then the applet/image is aligned with the verticle middle of other content on that line. If the applet/image isn't surrounded by content in the same block-level element, then it is aligned on the left. |
|
TEXTTOP aligns the top of the applet/image with the top of the tallest text on the current line. If the current line contains no text, then the applet/image is aligned with the verticle middle of other content on that line. If the applet/image isn't surrounded by content in the same block-level element, then it is aligned on the left. |
|
BASELINE (or BOTTOM) aligns the bottom of the applet/image vertically with the bottom of other content on the current line. The content is moved down from its normal position to accomodate the alignment. Only the current line of content is aligned with the applet/image, other lines of content appear below the applet/image. If the applet/image isn't surrounded by content in the same block-level element, then the applet/image is aligned with the verticle middle of other content on that line. If the applet/image isn't surrounded by content in the same block-level element, then it is aligned on the left. |
|
|