Frame Layout
Frame layout is similar to table layout. Using the <frameset>
tag, you can arrange frames into rows and columns while defining their relative or
absolute sizes.
The <frameset> Tag
Use the <frameset>
tag
to define a collection of frames and other framesets and to control
their spacing and borders. You may also nest framesets, resulting in a
richer set of layout capabilities.
Use the <frameset>
tag
in lieu of a <body>
tag in
the frame document. You may not include any other content except valid
<head>
and <frameset>
content in a frame
document. Combining frames with a conventional document containing a
<body>
section may result in
unpredictable browser behavior.
The rows and cols attributes
The <frameset>
tag has one required
attribute: either cols
or
rows
—your choice. They define the
size and number of columns or rows of either frames or nested
framesets for the document window. Both attributes accept a
quote-enclosed, comma-separated list of values that specifies either
the absolute (pixels) or relative (percentage or remaining space)
width (for columns) or height (for rows) for the frames. The number
of attribute values determines how many rows or columns of frames
the browser displays in the document window.
As with tables, ...
Get HTML & XHTML: The Definitive Guide, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.