<HTML> <HEAD> </HEAD> <FRAMESET ROWS="10,80,10"> <FRAME SRC="topbanner.html"> <FRAMESET COLS="30,70> <FRAME SRC="index.html"> <FRAME SRC="results.html"> </FRAMESET> <FRAME SRC="bottombanner.html"> </FRAMESET> <NOFRAMES> <B>I'm sorry, you don't have frames. </NOFRAMES> </HTML>A document that contains a FRAMESET has the same basic structure as a normal HTML document, except that the BODY container is replaced by the FRAMESET container which describes the HTML documents that will make up the body of this FRAMESET.
The FRAMESET tag has no BODY and no tags that would normally be placed in the BODY can appear before the FRAMESET, or Frames will be ignored. The FRAMESET tag has a matching end tag, and within the FRAMESET you can only have FRAMESETs, FRAMEs or NOFRAMES tags.
The number of rows is determined by the number of values in the list. The total number of the values must fill the available space: if it does not, one of the ROWs will be sized to fill any left over space.
Examples
<FRAMESET ROWS="20%,60%,20%">
This is a list of percentage values for the division of rows. If the
total number is more than 100%, all percentages will be scaled down to
total 100%. If the total number is less than 100%, one of the frames
will be scaled up to fill the remaining space.
<FRAMESET ROWS="100,500,100">
This is a list of fixed pixel values. If you use these values, they
will have no effect on the size of the reader's window, so you run the
risk of having your frames disappear off the edge of the
window. You'll almost certainly want to use these values in
combination with other percentage based or relative values.
<FRAMESET ROWS="50, 2*, *">
This is a mix of fixed and relative values. In this case the first ROW
is 50 pixels wide. The other two rows are divide the remaining
space. A single "*" means that the frame gets all of the remaining
space. When more than one "*" appear, you can give them relative
portions of the remaining space. In this case, the second row gets 2/3
of the remaining space and the third row gets 1/3 of the remaining
space.
This sets the number and size of rows in the frame. A percent_list is a comma separated list of percentage values between 1% and 100%. The number of values determines the number of rows, and the values themselves determine the size of each row in relation to the document. (If the total number of percentages in the list does not total 100%, then the percentages will be normalized to total 100%.)
Examples
<FRAMESET COLS="30%,70%">
This makes two columns, one 30% of the available width, one 70% of the
available width.
<FRAMESET COLS="100,100,20%,*">
This makes four columns. The first two are each 100 pixels wide. The
third is 20% of the width of the window and the fourth is the
remaining space.
If you want another link to go to this named frame, you write the link
as:
<A HREF="http://www.foo.com" TARGET="banner">link</A>