Learn HTML Code Tutorial Reference Guide

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.




 

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   Privacy Policy   |   About
Copyright ©1997-2002 Idocs and ©2002-2014 HTML Code Tutorial