Idocs Guide to HTML

Attribute for <IFRAME ...>
ALIGN = LEFT | RIGHT | TOP | TEXTTOP | MIDDLE | ABSMIDDLE | CENTER | BOTTOM | ABSBOTTOM | BASELINE

ALIGN offers the same bewildering array of alignment options as <IMG ALIGN="...">. However, for <IFRAME ...> there are really only three useful options: LEFT, RIGHT, and of course, not using ALIGN at all.

LEFT and RIGHT indicate that the frame should align to the left or right side of the page and that text should flow around it. If no ALIGN attribute is used then the frame is inline with the text.

this code produces this
<IFRAME 
     SRC="BeaverHabitat.html" 
     WIDTH=150 HEIGHT=150 
     ALIGN=RIGHT
     >
<A HREF="BeaverHabitat.html">Stuff 
about the Beaver</A>
</IFRAME>
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
<IFRAME 
     SRC="BeaverHabitat.html" 
     WIDTH=150 HEIGHT=150 
     ALIGN=LEFT
     >
<A HREF="BeaverHabitat.html">Stuff 
about the Beaver</A>
</IFRAME>
Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.
<IFRAME 
     SRC="BeaverHabitat.html" 
     WIDTH=150 HEIGHT=150 
     >
<A HREF="BeaverHabitat.html">Stuff 
about the Beaver</A>
</IFRAME>
This example does not use ALIGN at all, so the inline frame is, well, in line. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada. Yada yada yada.

Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.