Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS IE7 overflow property

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #32490
    ynks4ever1
    Member

    Sorry for posting the same question again… but I didn’t have any luck on the JS forum.

    Hi guys…
    I have this js code that is triggered by a button click, which displays a splash window and hides the scrollbars while the server processes the data (it prevents the users from clicking other buttons thus creating other server errors). I noticed that in IE7 the scrollbars do not hide. I found out that in IE7 this: document.body.style.overflow = “hidden”; doesn’t work. I also found out that in IE7 the overflow-x:hidden or overflow-y:hidden must be applied to the html element, not the body element.
    html { overflow:auto; overflow-x:hidden; }

    This is probably a very stupid question but… how is that done dynamically with JS? I haven’t been able to find out the solution. Any help is really appreciate it.

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.