A frameset document uses the FRAMESET element instead of the standard HTML element BODY. The element specifies either a series of rows or columns. Inside the FRAMESET opening and closing tags, each row or column is set up using the FRAME element. To set up a combination of columns and rows, use FRAMESET instead of FRAME.
The FRAMESET element has required opening and closing tags. It has two attributes, ROWS and COLS. One, and only one, of these must be used in every FRAMESET tag. The syntax for both attributes is the same, but using ROWS defines a series of rows, and COLS defines a series of columns.
In the ROWS or COLS attribute, the width (or height) of each row or
column is specified as a series of comma-separated values. A value
can be given in pixels or as a percentage. Percentages are
given as n%, where n is a number between 0 and 100. Numbers
are assumed to be pixel values. Relative values can also
be given, using the special *
value. The width or height
of columns whose value is given using *
is determined
after pixel width and percentage widths have been allocated.
Using *
just once means "remaining space should be assigned
to this frame." If it is used multiple times in a series, the remaining
space is divided equally between all the frames in question. If a number
is put before the *
, then it is interpreted as a relative
weight.
<FRAMESET ROWS="100,200">
<FRAMESET COLS="50%,50%">
<FRAMESET COLS="*,*">
.
<FRAMESET COLS="33%,33%,*">
COLS="33%,33%,33%"
was used instead, there would have been
a 1% of screen space unallocated, which would mean that one (randomly
chosen) column would be slightly wider. Because now *
is
used for the third column, this one will be slightly wider.
<FRAMESET ROWS="100,*,2*">