HTML and CSS Reference
In-Depth Information
#header {height: 10em }
#toc, #nav {width: 20%}
#footer {height: 4em }
</style>
</head>
<group compose="vertical">
<frame xml:id="header" source="lore.xhtml"/>
<group compose="horizontal">
<frame xml:id="toc" source="toc.xhtml"/>
<frame xml:id="main" source="intro.xhtml"/>
<frame xml:id="nav" source="main-nav.xhtml"/>
</group>
<frame xml:id="footer" source="copyright.xhtml"/>
</group>
</frames>
The <head> tag sets the title for the framed document and defines styles
that will affect the display of the correspondingly named frames with-
in the document set. The <group> tag, analogous to the <frameset> tag,
defines a group of frames and other groups whose layout is controlled by
the compose attribute. The <frame> tag defines a single document whose
content is displayed within that frame in the document. In this docu-
ment, five frames are arranged in three rows, with one frame at the top,
one at the bottom, and three in the middle row. In that row, the left
and right frames each occupy 20 percent of the available space, with
the center frame taking up the remainder. Individual frames are named
with the xml:id attribute; these names are referenced when loading new
content in a frame, when associating styles with a frame, and when cre-
ating a URL to display a specific frameset, as described shortly.
The compose attribute in the <group> tag provides some additional layout
capabilities that conventional frames do not allow. While the horizontal
and vertical layout choices perform the appropriate action, the single
and free choices are more interesting. Setting compose to single causes
the browser to display only one of the frames in the group at a time,
while providing some sort of mechanism to indicate the presence of oth-
 
Search WWH ::




Custom Search