Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
12-07-2006, 11:20 PM #1
- Join Date
- Mar 2005
- Thanked 0 Times in 0 Posts
Help with a frameset overflow problem
Due to an antiquated design, we are forced to use Frames for part of a site. I'm trying to figure out how to get scroll bars to show up for a frame only when we need them (we have some overflow). I don't want scroll bars or any sort of additional padding introduced in anticipation of them if the frame doesn't need it. I've tried putting the content in a <div> with overflow: auto as part of the style. That seems to work fine if I open the frame content in a window by itself, but not when it is part of the frameset.
Right hand frame content (which produces the scroll bar effect like I want if loaded by itself in the browser):
If you make the window small enough you'll see what I mean.
Thanks in advance for any help. Eventually we want to move away from frames, but that's not possible at the moment.
12-08-2006, 04:00 AM #2
- Join Date
- Mar 2006
- Splendora, Texas, United States of America
- Thanked 288 Times in 282 Posts
My guess is that you should get rid of the red in this code: <frame … scrolling="no">.
By the way, the HTML 4 Transitional DTD is not the correct DTD to use with a frameset document. It’s <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">.
For every complex problem, there is an answer that is clear, simple, and wrong.