Solved

frame heights

Posted on 2000-02-15
4
217 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now