A plain number is assumed to be a fixed size in pixels. Since not everyone has the same size browser window, it is dangerous to rely strictly on this method for determining the sizes of all your frames. If you specify a frame to be a fixed number of pixels, you should always specify the size of at least one other frame as a relative proportion.
To specify the size of frames as relative proportions of one another, you need to use the asterisk symbol (*
). In the above example, to have one frame 100 pixels wide and then give whatever space is left for a second frame, you would enter 100 for the first and *
for the second. To have three frames of the same size, you would enter one *
for each. You can also use numeric modifiers to increase the relative proportions of particular frames. For example, if you have three frames and you want one to be twice as big as the others, you would enter 2*
for it and *
for each of the other two. I highly recommend that you specify the sizes of frames using relative proportions whenever possible.
A number between 1 and 100 followed by the percentage sign (%) specifies the size of the frame as a percentage of the size of the browser window. If the total width or height of your frames doesn't equal 100%, the frames will be scaled up or down as needed. You can also mix percentages with relative proportions. For example, you can make one frame 10% wide and then enter *
for a second one to give it whatever space is left (entering *
for the first frame and 9*
for the second frame would accomplish the same thing).
Brought to you by Sam Choukri
Frequently Asked Questions
Updated on Oct 21, 1997