Forum Moderators: open

Message Too Old, No Replies

Lock Frames

want them to just be static instead of resizing..

         

Jeeek

6:22 pm on May 5, 2004 (gmt 0)

10+ Year Member



I know, never use framesets, framesets are the devil.. ;-) but still I (have to) use them;

what I want to have, is frames that don't become smaller when you make your window smaller - parts, that are not visible anymore should just disappear - that's it.

here's what I got:

<frameset cols="*,800,*" border="0" framespacing=no frameborder="0" noresize>
<frame name="back1" src="back.htm" scrolling=no frameborder="0" noresize>
<frameset rows="*,170,25,385,20,*" border="0" framespacing=no frameborder="0" noresize>
<frame name="back2" src="back.htm" scrolling=no frameborder="0" noresize>
<frame name="header" src="header.htm" scrolling=no frameborder="0" noresize>
<frame name="nav" src="navigation.htm" scrolling=no frameborder="0" noresize>
<frame name="content" src="content.htm" scrolling=auto resize>
<frame name="footer" src="footer.htm" scrolling=no frameborder="0" noresize>
<frame name="back3" src="back.htm" scrolling=no frameborder="0" noresize>
</frameset>
<frame name="back4" src="back.htm" scrolling=no frameborder="0" noresize>
</frameset>

works perfect when you make the window bigger - always the same size of the "important" frames, only the "back"-frames become larger (wohooo - you'd never have guessed, right)
BUT when the window becomes smaller, the navigation, content, header, footer become smaller, too - want them to stay exactly the same size no matter what.

tedster

7:39 pm on May 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think browsers simply have this freedom - because framesets are supposed to fill the viewport. You have stumbled onto another "evil" about frames -- and I would take a different design approach, but you already know that ;)

However, it doesn't look to me like you really need to nest two framesets here. How about just using
<frameset rows="*,170,25,385,20,*">.

That only takes 600 px width (good for almost all PCs and Macs, but not handhelds) and the right and left * frames should give you the same functionality, right?

Jeeek

12:05 pm on May 10, 2004 (gmt 0)

10+ Year Member



Thanks for the answer

the "*,800*" - Frameset is needed to horizontally center the thingy, the "*,170,25,385,20,*" I need to place the stuff in the middle of the screen vertically.

Frames are evil, still I like to use them (or let's say ppl who do the graphics for me..) - helps to keep everything in the right place, load things just when you need them and have scrollbars in the right place.

tedster

8:12 pm on May 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Whoops - missed the rows vs. cols thing.

As I said, I think you're stuck here. Have you tried a 1px height at the right widths spacer.gif as a kind of "shim" to force the frame size?