View Full Version : html frames
borispc
April 28th, 2005, 01:47 PM
Hello Everyone!
I'm trying to create a frameset with 3 frames (as in 3 rows). I want to have a fixed height for all of them but I don't seem to come up with a structure. I always get one frame to move around when I scale the browser window.
So basically...
Q: what is the html frame structure for 3 frames (on top of each other as in rows) so all have fixed pixel heights that won't get modified when you scale the browser window. How do you split the frames to achieve that fixed structure?
Thank you!!!
borispc
April 28th, 2005, 04:46 PM
Here's the closest I got...
<html>
<head>
<title>Three Frames</title>
<frameset rows=175,300,*>
<frame src="3.htm" frameborder="no" noresize>
<frame src="2.htm" frameborder="no" noresize>
<frame src="1.htm" frameborder="no" marginheight="0" >
</frameset>
</html>
The top 2 frames don't scale and the last one does but if I align the content of my bottom frame to the top it's ok....
Unfortunately it doesn't work for netscape or firefox.
Any workarounds?
Enigmatic
April 28th, 2005, 06:26 PM
What about using a table set to 100% in the x & y axis, then load everything else in using iFrames ?
Thought about that approach ?
bwh2
April 28th, 2005, 07:56 PM
think about what you're saying: you want fixed pixel heights for each frame, but you also want to be able to scale the website... it just doesn't make sense.
so say you want the following 3 frame heights horizontally: 175, 300, 125. but you don't want 175+300+125 to equal 600. you want it to equal some other number? see how the math just doesn't add up? one of the frames has to be a variable height because the browser window is a variable height (unless you load in a popup or use a browser resize script).
borispc
April 28th, 2005, 08:06 PM
OK...not 3 fixed heights but 2 fixed heights and the last one scalable.
That code works for IE & Safari but not netscape or Firefox...
I don't want the site to be scaled, just to be able to scale the browser window (seeing less part of the site). Like I said, that code works for me but I was wondering if there is a way to achieve that frameset in Netscape and Firefox. Or at least Netscape.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.