FRAME LAYOUT
Creating Frames
Frames are created by declaring a FRAMESET in place of the BODY tag in an HTML document. FRAMESET tags specify the number of column and row frames. FRAMESET tags can be nested inside of other FRAMESET tags to further subdivide a frame, (creating a complex document). FRAMESET tags have two attributes: ROWS and COLS. The number of ROWS and COLS frames are specified in three possible ways: pixel size, percentage%, or relative scaling value. Pixel sizes specify a maximum fixed size frame. A percentage, (1 ... 100) %, allows the browser to determine the frame sizes relative to the user's Web window size. Relative scaled frames are denoted by a asterisks, '*,*' or by weight ed asterisks, '3*,*', which indicates that the first frame should be 3 times as large as the second frame, or 3/4ths of the entire window. A single asterisk '*' results in the frame being allocated all of the remaining window space not used by other pre-specfied frames.
Examples
Partitioning a window into 2 vertical frames with the first being 25% of the window and the second being 75% could be done with the either of the following HTML FRAMESET code segments:
|
<FRAMESET </FRAMESET> |
<FRAMESET COLS="25%,*"> </FRAMESET> | |
Further partitioning of the second vertical frame into three horizontal frames for a header, body and footer might be done with either of the following HTML FRAMESET code segments:
|
<FRAMESET COLS= <FRAME SRC="left.html"> <FRAMESET ROWS= <FRAME SRC="right1.html"> </FRAMESET> </FRAMESET> |
| |
|
<FRAMESET COLS="25%,*"> <FRAME SRC="left.html"> <FRAMESET rows="100,1*"> <FRAME src="right1.html"> <FRAMESET rows="1*,100"> <FRAME src="right2.html"> </FRAMESET> </FRAMESET> </FRAMESET>
| ||
|
| ||
Frame Tag
The FRAME tag specifies the content of a frame and is explained in the frame content section.