
|
 |
 |

All frames begin with the <FRAMESET> tag, this tag replaces the <BODY> tag. This tag describes how the document will be sectioned off, it can be divided into rows or columns, but not both. You can nest more frameset tag inside to further divide that section. For the example from the previous section it would have to be set up in rows, the top row would hold the a.html page, and the second or bottom row would be further subdivided into columns, with the left column holding b.html, and the right column holding c.html.
COLS
The COLS attribute defines the columns in the frameset tag. The value can be either a percentage, a number in pixels, or the asterisk (*) symbol. The asterisk (*) is used as a wild card it basically represents the left over percentage or pixels needed to take up the entire screen and it is widely used (you should always use this when using pixels since the monitor settings can be adjusted to different resolutions). To set up the columns you must decide on the value for each column and enter them here with the comma (,) separating each entry for each column.
<FRAMESET COLS="350,*">...</FRAMESET>
This will divide the page into 2 columns. The first having a width of 350 pixels, and the second having the remaining area.
ROWS
The ROWS attribute works like the COLS attribute, in that the value can be either a percentage, a number, or the asterisk symbol. The values must also be separated by a comma (,).
<FRAMESET ROWS="35%,10%,55%">...</FRAMESET>
This will divide the page into 3 rows.
FRAMEBORDER, BORDER, AND FRAMESPACING
These attributes together define the size of the frames border (this is netscape only), the border, and the spacing of the frames. When the values of all 3 attributes are set to "0" the border will be invisible, they must all be included in the tag to achieve this.
© Copyright 2000-2002 by Pepmint.com. All Rights Reserved |
 |
 |
|