Solved

frame heights

Posted on 2000-02-15
4
235 Views
Last Modified: 2010-04-09
<frameset framespacing=0 border=false frameborder=0 rows="750,130,450">
  <frame name=top noresize scrolling=no src="Frame1.asp">
  <frame name=middle noresize scrolling=no src="Frame2.asp">
  <frame name=bottom noresize src="Frame3.asp">
</frameset>

The row heights of 750,130,450 look good only in 1024x768 maximized IE 5.0 browser.  If I resize the browser, the frames, although supposedly with hardcoded heights, resize as if I am using a percentage.  What I want to do is have a frameset with rows="x,y,*" where x and y are numbers that I can set to whatever heights I want.  Also, a scrollbar on the entire frameset would be nice, rather than having the last frame be scrollable.
0
Comment
Question by:rpiette
  • 2
4 Comments
 

Expert Comment

by:SuperCool
ID: 2525134
I'm taking a guess as to how to get the whole thing to have a scrollbar. Put the Frameset you have now inside a frameset with a scroll bar.
Also I suggest you make your pages compatible for a smaller resolution because 1024x768 may be what a web developer has, but a lot of PC users don't...
and making a page compitble for IE must be a sin of some sort:-)
as for the first part of your question, not sure if its possible...

- Mike Page
webmaster@supercool.org
ICQ: 829645
www.idev.org
0
 
LVL 7

Expert Comment

by:nettrom
ID: 2526472
the problem with your frameset is that you have defined all three sizes, making it hard/impossible for the browser to change the size of one of them to fit the size of the browser window.  when you design frames you should take the window size into consideration, and make sure you have a frame which size doesn't matter.

you say you want a scrollbar for the whole frameset, which you won't get unless the user has WebTV.  it's the only browser I've seen that redraws a frameset as one single page and lets you scroll it all.

as far as I can understand your question you want a three-row frameset, where the  frames 1 & 2 are fixed size, and frame 3 gets the rest of the browser window height.  all three frames should have scrollbars if necessary.

result:

<frameset framespacing=0 border=false frameborder=0 rows="xxx,yyy,*">
  <frame name=top noresize src="Frame1.asp">
  <frame name=middle noresize src="Frame2.asp">
  <frame name=bottom noresize src="Frame3.asp">
<noframes>
insert useful content for browsers that don't support frames here (e.g. indexing spiders).
</noframes>
</frameset>

change 'xxx' & 'yyy' to the sizes you want.  since there's no "scrolling" attribute it defaults to "auto" which means that the browser will add a scrollbar if necessary.
0
 

Author Comment

by:rpiette
ID: 2528465
SuperCool, I'm designing for 800x600, which is why it's a problem that it looks good only in 1024x768.  Also, it's for an intranet web application, with only IE 5.0 clients, which is why I don't care about any other browsers.

Nettrom, I've already tried your suggestion, along with every other permutation I can think of, and the frames still resize of their own volition.

I was hoping there was a way to force the frames to their original specs (xxx,yyy,*) and make the whole thing scrollable.  I guess there is not.  BTW, putting this frameset into another scrollable frame didn't work either.

0
 
LVL 7

Accepted Solution

by:
nettrom earned 100 total points
ID: 2530266
no, it's not possible to scroll the whole thing, except for WebTV as I noted.  the concept of frames was never intended to be that way, instead each frame is regarded as a separate entity, therefore it'll have its own scrollbars.

as long as there's enough screen real estate (= space in the browser window), sizing the frames to 'xxx,yyy,*' will keep the first two frames at size 'xxx' & 'yyy'. what happens when there's no real estate left is probably undefined, and depends on the browser.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question