View Full Version : Help with a frameset overflow problem

12-07-2006, 11:20 PM
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
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 (http://www.w3.org/QA/2002/04/valid-dtd-list.html) 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">.