You are here: irt.org | FAQ | JavaScript | Frame | Q110 [ previous next ]
You can control the frame sizes using two methods: pixels or percentages.
The following sets the top row to 20 pixels, the middle row to 50 pixels, and the third row to whatever is left:
<FRAMESET ROWS="20,50,*">
<FRAME SRC="blank.html" NAME="topFrame">
<FRAME SRC="middle.html" NAME="midFrame">
<FRAME SRC="blank.html" NAME="botFrame">
</FRAMESET>The following sets the top row to 20% of the height of the available window, ditto with the remainder:
<FRAMESET ROWS="20%,50%,30%">
<FRAME SRC="blank.html" NAME="topFrame">
<FRAME SRC="middle.html" NAME="midFrame">
<FRAME SRC="blank.html" NAME="botFrame">
</FRAMESET>