4

Possible Duplicate:
Disable browsers vertical and horizontal scrollbars

Can I disable vertical scroll bar in IE.

Community
  • 1
  • 1
Rahul Utb
  • 493
  • 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
  • 28,120
  • 9
  • 64
  • 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
  • 155,085
  • 27
  • 166
  • 222
  • 1
    It really does deserve a down vote, why would you suggest a non-standard html attribute when people have mentioned perfectly good solutions? – Juan Mendes Sep 27 '10 at 18:52
1

In CSS you can do:

html, body {
overflow-y:hidden;
}
methodin
  • 6,629
  • 1
  • 23
  • 26
0

Disabling scroll bars with css

overflow-x:hidden
overflow-y:hidden
Gabe
  • 48,376
  • 28
  • 140
  • 179