Click to See Complete Forum and Search --> : sizing frames


bbon
12-03-2002, 01:41 AM
I'm I missing the boat on frames?

Are you not able to fix the size of frames so they do not distort the contents? In attempting to solve this I read somewhere the contents will shift if two colums use fixed sizing (say cols="100,100"). Is this true?

What I'm trying to do is build a page with three frames (seemed so simple!) - top, and bottom with bottom divided into left and right sub-frames. I want my graphic in the top frame not to be resized nor the nav bar in the left. To avoid text content from spilling beyond 640 pixels I set the right frame to 500 pixels (640 minus nav bar). It seemed to work OK until I maxed the window and found the text in the right frame spilling to the edge of the window well beyond of top frame boundary.

How can I truly fix the size of the frames so when the browser window is resized it does not distort the contents of the frames? Use tables instead?

Beach Bum
12-03-2002, 02:12 AM
like this?

<frameset rows="100,*">
<frame name="top" scrolling="no" noresize>
<frameset cols="100,*">
<frame name="lbottom" scrolling="no" noresize>
<frame name="rbottom" scrolling="auto" noresize>
</frameset>
<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>
</noframes>
</frameset>

Stefan
12-03-2002, 05:34 AM
Originally posted by bbon
To avoid text content from spilling beyond 640 pixels I set the right frame to 500 pixels (640 minus nav bar). [/B]

Apart from what Beach said you can use the following CSS in the rbottom frame page.

body {width:500px;}

bbon
12-03-2002, 11:08 AM
Here is a copy of the code where overall size I'm looking for is 640x480.

<frameset cols="640" rows="125,355" frameborder="NO" border="0" framespacing="0" >
<frame name="topFrame" scrolling="NO" noresize src="titlebar.htm" >
<frameset cols="122,518" rows="*" frameborder="no" border="0" framespacing="0" >
<frame name="leftFrame" scrolling="NO" noresize src="navbar.htm">
<frame name="rightFrame" scrolling="auto" src="content.htm" noresize>
</frameset>
</frameset>

Beach Bum
12-06-2002, 09:22 PM
i have been playing with this - resizing the browser with frames. i think what you want to do is resize the browser window but keep one of the frames (and therefore the contents) constant. my conclusion, it cannot be done.

you second question - can you do this with tables? don't know - i have not really worked much with tables but i would assume you will have the same problem.

let us know what you end up doing. i am sure others will be asking the same question in the future.

Stefan
12-06-2002, 09:55 PM
Mayby you should provide a link to your page so we can really get a look at what you are doing and offer a good suggestion for how you should do.

Eg if a table will do what you want then using frames is probably not at all what you want.

If you are just looking for how to place a menubar to the left and a logoimage at the top the easiest to work with is CSS.