Inset Boxes using <IFRAME ...>

The most popular use of <IFRAME ...> is for creating "inset boxes", much like those found in newspapers and magazines. Insets boxes are popular for small mini-articles tagentially related to the main page. For example, this code puts an inline frame on the page, and provides a link for non-IFRAME browsers:

<IFRAME 
SRC="BeaverHabitat.html" 
WIDTH=275 HEIGHT=200 
ALIGN=RIGHT
>
<TABLE ALIGN=RIGHT BORDER=1 CELLPADDING=5>
<TR><TD>See the article on 
<A HREF="BeaverHabitat.html">Stuff about the Beaver</A></TD></TR>
</TABLE>
</IFRAME>

which produces this inline frame (or table, or just a link): Note that we use ALIGN to set the frame aligned to the right side and to have text flow around it.





About the Author
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.