Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    28
    Thanks
    0
    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.

    Examples...

    Frameset:
    http://dev.admin.vcall.com/Lane/frameset.html

    Right hand frame content (which produces the scroll bar effect like I want if loaded by itself in the browser):
    http://dev.admin.vcall.com/Lane/right.html

    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.

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,302
    Thanks
    28
    Thanked 276 Times in 270 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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •