
649
Using Frames and Framesets
16
An iframe is depicted in Design view as a solid rectangle, even if absolute positioning is
not used. Although you can’t see the content at design time in Dreamweaver without pre-
viewing the page in a browser, the iframe dimensions are rendered correctly to preserve the layout.
Specifying position:absolute in the style attribute enables you to exactly position
a floating frame on the page. However, if you specify position:absolute and your
other content is not contained within AP elements, your floating frame may overlap the other content
on your page. For this reason, it is best to use floating frames in combination with a CSS-based layout.
You can also specify a style of position:relative. In this case, browsers display the floating frame on
the page relative to the other page content, even if that content is not contained within AP elements. Note,
however, that Design view does not always correctly display floating frames that are positioned relatively, and
sometimes the floating frame overlaps existing content, making it difficult to edit. Again, it is best to lay out
your content using CSS positioning and specify position:absolute for your <iframe> if you are using
floating frames.
In Dreamweaver, iframes are referred to as floating frames. Dreamweaver facilitates the inclusion of
iframes in your documents with the Floating Frame button in the Fram