Fixed frames

JLTho used Ask the Experts™
I am creating a site that has 4 frames: main, top, bottom, and right. Currently, if a visitor were to resize the browser window, it would not show part of the frames. I don't, however, want each individual frame to scroll, instead I was wondering if there is any way that each frame can be fixed and I can have the whole page/set of frames scroll. Any help would be apreciated. Thanks.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Well as far as I know... unless you use some script or something there is now way to do what your wanting to do... mainly because a frames page isn't one document... but several grouped together...

what your problem is how you have your frames set up... you see in Dreamweaver it sets up the frames so they display different... for different reasons...

ok... follow me here... in the properties of the frameset are settings that control this... its gonna be a drop down menu that will have 3 choices....
1 Pixels
2 Relative
3 Percent

If you pick Pixels and type in a number in the box next to the drop menu... it will display that frame always at the amount of pixels specified....

If you pick Relative it will display that frame relative to the other frames... so for example if you have a frame that is set to 200 pixels at the top... and your relative frame is at the bottom... and someones screen resolution is set to 800x600 then it will set your frame to 400 pixels because thats how many it has to use... so the relative frame will always display in what room it has left in the browser...

If you pick Percent and type in a number like 10 it will display that frame in 10% of the browser window... but will not override a pixel set frame...

So what you need to do is set up your frames properly and that will fix your problem... :-)

Here is the code for a basic 2 frame frameset

<frameset rows="28,*" cols="*" frameborder="NO" border="0" framespacing="0">
  <frame src="yourpage.html" name="topFrame" scrolling="NO" noresize >
  <frame src="yourpage.html" name="mainFrame" frameborder="no" scrolling="auto" noresize>

See where it says <frameset rows="28,*"????
That is the part that is telling it to display the top frame in 28 pixels... and the bottom frame is relative... thats what the * means...

Got the idea??? If ya need anymore help just say so...


Thanks for your help.

No problem.... :-)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial