Skip to Main Content
Adobe® Dreamweaver® CS4 Bible
book

Adobe® Dreamweaver® CS4 Bible

by Joseph Lowery
March 2009
Beginner to intermediate content levelBeginner to intermediate
1321 pages
46h 24m
English
Wiley
Content preview from Adobe® Dreamweaver® CS4 Bible
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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Adobe® Dreamweaver® CS5 Bible

Adobe® Dreamweaver® CS5 Bible

Joseph W. Lowery
Dreamweaver® CS3 Bible

Dreamweaver® CS3 Bible

Joseph W. Lowery

Publisher Resources

ISBN: 9780470382523Purchase book