Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q110 I have three frames on my page, how can I control how far down the horizontal window split goes?

irt.org | Knowledge Base | JavaScript | Frame | Q110 [ previous next ]

Q110 I have three frames on my page, how can I control how far down the horizontal window split goes?

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.