2

After using the code:

body{
    overflow:hidden;
}

The scrollbar disappears from the right-hand side of the page but as a consequence, I can no longer scroll up or down the page unless I click the scroll wheel on the mouse and drag in the direction I wish to scroll. Any ideas on how to combat this?

Ieuan
  • 23
  • 4

1 Answers1

1

the purpose of overflow: hidden; is not to hide the scroll bars - that is a consequence of what is really happening, that is - all the content that exceeds the "visible" area is clipped (hidden).

You are basically looking for something (hiding scrollbars) that is not the purpose of overflow: hidden;

Luca
  • 9,259
  • 5
  • 46
  • 59
  • 1
    Right. Overflow acts on content that overflows the width or height of its container. Nothing to do with scroll bars, although, it does affect them. – user1934286 Feb 14 '13 at 08:04
  • that's correct - scroll bars can be seen as a *consequence* of standard `overflow` behaviour! – Luca Feb 14 '13 at 10:24