The Web Design Group presents:


Guide to frames usage


Using frames: Combining rows and columns

The simplest way to get a combination of rows and columns is to first set up the "outermost" set of rows or columns, and then replace the FRAME element in the row (or column) which should get the "innermost" set with a nested FRAMESET element. To illustrate this, the following example will define a frameset with two columns. The rightmost column will consist of two rows.

First, define a frameset with two columns: A sketch of the simple 2-column 'outermost' frameset

<FRAMESET COLS="*,*">
<FRAME SRC="leftmost.html" NAME=left>
<FRAME NAME=right>
</FRAMESET>

The SRC attribute on the second frame has been omitted, because it will be replaced in a minute. The definition of the two rows which should go on the right goes as follows: A sketch of the nested frameset as defined to the left

<FRAMESET ROWS="25%,75%">
<FRAME SRC="top.html" NAME=topright>
<FRAME SRC="bottom.html" NAME=bottomright>
</FRAMESET>

Nesting this last frameset in the first is a matter of replacing the "right" frame definition with the definition of the frameset: The result of nesting the second frameset into the first

<FRAMESET COLS="*,*">
<FRAME SRC="leftmost.html" NAME=left>
<FRAMESET ROWS="25%,75%">
<FRAME SRC="top.html" NAME=topright>
<FRAME SRC="bottom.html" NAME=bottomright>
</FRAMESET>
</FRAMESET>

Web Design Group
Last modified: 31 Mar 1997.
Feedback: galactus@htmlhelp.com
Copyright © 1996 - 2006. Arnoud "Galactus" Engelfriet. All rights reserved.