Each value in the rows and cols
attributes can be specified in one of three ways: as an absolute
number of pixels, as a percentage of the total width or height of the
frameset, or as a portion of the space remaining after setting aside
room for adjacent elements.
The browser matches the size specifications as closely as possible.
However, the browser will not extend the boundaries of the main
document window or leave blank space outside of frames. Space is
allocated to a particular frame in reference to all other frames
across the row or down the column, and the entire document window is
filled. Also, the main document window for a frame document does not
have scrollbars.
Here is an example of setting row heights in pixels:
<frameset rows="150,300,150" >
This creates three frames, each stretching across the entire document
window. The top and bottom rows are set to 150 pixels tall; the
middle is set to 300 pixels. Unless the browser window is exactly 600
pixels tall, the browser automatically and proportionally stretches
or compresses the top and bottom rows so that each occupies
one-quarter of the window space. The middle row occupies the
remaining half of the window. This frameset could be expressed with
percentages like this:
<frameset rows="25%,50%,25%" >
The percentages should add up to 100%, of course. If they
don't, the browser resizes the rows proportionally
to make them fit.
<frameset cols="50,*" >
creates one fixed 50-pixel column down the left side of the window;
the remaining space goes to the right column. The asterisk can also
be used for more than one column or row. For example:
<frameset rows="*,100,*" >
creates a 100-pixel-tall row across the middle of a frameset and rows
above and below it that are equal in height.
If you precede the asterisk with an integer value, the corresponding
row or column gets proportionally more of the available space. For
example:
<frameset cols="10%,3*,*,*" >
creates four columns: the first column occupies 10% of the overall
width of the frameset. The second column then gets three-fifths of
the remaining space, and the third and fourth columns each get
one-fifth. Using the asterisk makes it easy to divide remaining space
in a frameset.