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 3 of 3
  1. #1
    New Coder
    Join Date
    May 2003
    Location
    in a small damp cupboard
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    disabling horizontal scrollbars in scrolling divs

    So here's the problem:

    Code:
    <div style="overflow: scroll;">some text</div>
    That displays with a horizontal scrollbar as well as a vertical scrollbar, even when the horizontal is not required. Is there any way to stop it from showing? I don't want to use a javascript scroller as they're plain nasty and means you can't use a scroll mouse with it, any ideas?

    iframes are an alternative but again, not ideal as using sessions in PHP can (and will) cause problems whenever you use any kind of frame.

    Thanks in advance,

    MrJ

  • #2
    New Coder
    Join Date
    Dec 2003
    Location
    California
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try changing it to auto instead of scroll.

    // freak

  • #3
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If it wasn't proprietry code you could use
    Code:
    <div style="overflow-y: auto; overflow-x:none;">some text</div>
    Andrew

    I take no responsibility for the above nonsense.


    Left Justified


  •  

    Posting Permissions

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