Forum Moderators: open

Message Too Old, No Replies

Frames resize

         

davenom

11:42 am on Aug 30, 2004 (gmt 0)

10+ Year Member


when i chanche the size of my browser (IE) the complete frameset checnhes with it. How can i make it so that it wil work good because im stuck here.

here is the frame set code im using:

<frameset frameborder="0" cols="*" framespacing="0">
<FRAMESET cols="132,83%">

<FRAME src="side.html" NORESIZE SCROLLING="no" "NAME="side" target="_self" name="side" marginwidth="0" marginheight="0">

<FRAMESET rows="164,285">
<frameset cols="219,460">
<FRAME src="topleft.html" NORESIZE SCROLLING="no" "NAME="topleft" name="topleft" target="_self" marginwidth="0" marginheight="0">
<FRAME src="topright.html" SCROLLING="no" "NAME="topright" target="_self" name="topright" marginwidth="0" marginheight="0" noresize>
</FRAMESET>
<FRAMESET rows="9,66">
<FRAME src="menu.html" SCROLLING="no" NORESIZE "NAME="menu" name="menu" target="_self" marginwidth="0" marginheight="0">
<FRAMESET rows="800">
<FRAME src="home.html" NORESIZE "NAME="home" target="_self" scrolling="auto" name="home" marginwidth="0" marginheight="0">
</FRAMESET>

can someone help me out?

greets,
davenom

tedster

5:40 pm on Aug 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A frame set will always fill the viewing window. When you set the rule for how to divide the territory, at least one of the component frames must change size.

To set your frameset rules so that most of the frame layout stas fixed, you can use a number of pixels for every frame but one. That one dimension should be a wildcard (*) and it will probably be for your main content frame.

When you set every frame col or row as a fixed number, you are ensuring that the browser will make its own decision because it can't do what your rules say:

1. "This is a frameset - therefore it must fill the window"
2. frameset cols="219,460" means only use cols to fill 219+460 (679) pixels\

Try frameset cols="219,*" and so on. The first col should stay fixed at 219, and the second will fill the rest of the available space. When you state the rule the way it is, the browser preserves the ratio of the two, but not the absolute sizing.

Hope that helps.

davenom

6:12 am on Aug 31, 2004 (gmt 0)

10+ Year Member



thanks for awnsering my question :)