Basic HTML Question - Please Help

Kenji4861

Banned
Jan 28, 2001
2,821
0
0
I want to create a dynamic frameset.

I have two frames... top and bottom.

I want the top frame to change size when the user changes the browser size.

I tried to look for javascript functions that can do this, but no luck. Thanks for help in advance.
 

esun

Platinum Member
Nov 12, 2001
2,214
0
0
If you specify sizes using percentages instead of values, it'll change with the size of the browser window according to the percentage of the width or heigth that the windows is adjusted to.
 

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
Originally posted by: esun
If you specify sizes using percentages instead of values, it'll change with the size of the browser window according to the percentage of the width or heigth that the windows is adjusted to.

Ditto
 

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
If you're trying to make it compatible across many resolutions, don't waste time on that. Look at what other sites have done.
 

Entity

Lifer
Oct 11, 1999
10,090
0
0
Do you need it to size to a specific size, or just be a percentage?

And to be a stickler, this should be in softare/programming.

Rob
 

Kenji4861

Banned
Jan 28, 2001
2,821
0
0
Originally posted by: esun
If you specify sizes using percentages instead of values, it'll change with the size of the browser window according to the percentage of the width or heigth that the windows is adjusted to.


I need the

height = 50% of width

so when the user changes the width, the height of the frame would change too. Can I do this with something similar?