Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

framesets and scrollbars -- 1

Status
Not open for further replies.

link9

Programmer
Nov 28, 2000
3,387
US
Morning all --

So I have this website, and I just went through and set the whole thing up in a frameset so that there is always a 10 pixel contact line along the bottom.

The problem is this -- Now, the upper frame always leaves room for a scroll bar, even when one is not needed, which completely screws up how the page looks because I have about a 10 pixel empty space to the right of it when the page doesn't need to scroll...

What is the setting that I need to put in so that that space doesn't show unless there is actually a scroll bar there?

thx for any input --
Paul Prewett
 
Well, I've been playing with the code and reviewing every book I've got on HTML and the only thing I can find is from O'reilly's HTML book and it is below:

With scrolling="yes", the browser adds scroll bars to the designated frame even if there is nothing to scroll. If you set the scrolling attribute value to no, scrollbars will never be added to the frame, even if the frame contents are larger than the frame itself. The value auto, supported only by Netscape, works as if you didn't include the scrolling attribute in the tag; Netscape adds scrollbars as needed. To achieve auto behavior in Internet Explorer, simply omit the scrolling attribute altogether.

Note the Auto is only supported by netscape according to them. I removed the scrolling="auto" from the code and it still leaves a blank space in IE. I'm totally confused by this issue - I've never seen it happen before but I guess most people using frames have a white background and don't expect the color to come all the way across the page so you would never even notice it. I'm checking the IE development site to see if this issue has been reported and if there are any fixes. I'll let you know.
 
Thank you, WebGodiva. I look forward to your response, and hope that you are more successful than I have been. :)
 
Ok, just forget it -- if anyone is still bothered by this, I'm officially over it -- it's a bug and the only way around it is to use a workaround --

Pages I know will never need a scroll bar, I will put scroll=no in the body tag...

As for the others, I'll either put line breaks at the bottom to force the scrollbar, or deal with the gutter.

Thanks for everyone's input -- we all have better things to do. :)

paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top