CalHTMLPane v2.0 Guide Example Tag Usage


5: Misc

Attr: align

Use With:
Images, form components, inline frames, <OBJECT> tag
Arguments: abstop | top | absmiddle | middle | texttop | baseline | bottom | absbottom | left | right
Synopsis:
abstop aligns the object to the top of the line

top and texttop align the object to the top of any text

absmiddle aligns the object to the center point of the line

middle aligns the object to the middle of any text

bottom and baseline align the object to the baseline of any text

absbottom aligns the object to the bottom of the line

left will float the object on the left margin

right will float the object on the right margin

Example:

<TABLE width=100% border=0 cellspacing=0 cellpadding=1 bgcolor=black><TR><TD></TD></TR></TABLE>
<IMG src="nosrc.gif" alt="top texttop" align=top width=80 height=80>
Some text
<IMG src="nosrc.gif" alt="bottom baseline" align=bottom width=80 height=50>
more
<IMG src="nosrc.gif" alt="abstop" align=abstop width=80 height=80>
more
<IMG src="nosrc.gif" alt="middle" align=middle width=80 height=80>
more
<IMG src="nosrc.gif" alt="absmiddle" align=absmiddle width=100 height=80>
more
<IMG src="nosrc.gif" alt="absbottom" align=absbottom width=100 height=50>
<TABLE width=100% border=0 cellspacing=0 cellpadding=1 bgcolor=black><TR><TD></TD></TR></TABLE>

Rendering:

top texttop Some text bottom baseline more abstop more middle more absmiddle more absbottom


Guide Index  |  JavaDoc  |  Previous  |  Next