disable scroll bar in IE

17,185

Solution 1

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

Solution 2

And in case you want to use just html attributes:

<body scroll="no">

to disable scroll in IE completely

Let the down voting begin ;)

Solution 3

In CSS you can do:

html, body {
overflow-y:hidden;
}
Share:
17,185
Rahul Utb
Author by

Rahul Utb

Updated on June 30, 2022

Comments

  • Rahul Utb
    Rahul Utb almost 2 years

    Possible Duplicate:
    Disable browsers vertical and horizontal scrollbars

    Can I disable vertical scroll bar in IE.

  • Ruan Mendes
    Ruan Mendes over 13 years
    It really does deserve a down vote, why would you suggest a non-standard html attribute when people have mentioned perfectly good solutions?