Web Analytics Made Easy -
StatCounter disabling horizontal scrollbars in scrolling divs - CodingForum

Announcement

Collapse
No announcement yet.

disabling horizontal scrollbars in scrolling divs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    Try changing it to auto instead of scroll.

    // freak

    Comment


    • #3
      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

      Comment

      Working...
      X