Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

frame heights

Posted on 2000-02-15
4
Medium Priority
?
268 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 400 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

580 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