4

Possible Duplicate:
Disable browsers vertical and horizontal scrollbars

Can I disable vertical scroll bar in IE.

Community
  • 1
  • 1
Rahul Utb
  • 489
  • 2
  • 7
  • 15

4 Answers4

5

If you want to disable the scroll bar for a form element, you can use the following code:

style="overflow-y:hidden"

If you want the actual browser to not have a scroll bar, you can apply the same style to the html element.

html {
    overflow-y: hidden;
}

If you want to disable both scroll bars:

overflow: hidden
Robert Greiner
  • 29,049
  • 9
  • 65
  • 85
3

And in case you want to use just html attributes:

<body scroll="no">

to disable scroll in IE completely

Let the down voting begin ;)

mplungjan
  • 169,008
  • 28
  • 173
  • 236
  • 1
    It really does deserve a down vote, why would you suggest a non-standard html attribute when people have mentioned perfectly good solutions? – Ruan Mendes Sep 27 '10 at 18:52
1

In CSS you can do:

html, body {
overflow-y:hidden;
}
methodin
  • 6,717
  • 1
  • 25
  • 27
0

Disabling scroll bars with css

overflow-x:hidden
overflow-y:hidden
Gabe
  • 49,577
  • 28
  • 142
  • 181