set overflow hidden in some cases
Posted
by Richard
on Stack Overflow
See other posts from Stack Overflow
or by Richard
Published on 2009-06-07T06:31:22Z
Indexed on
2010/04/08
7:03 UTC
Read the original article
Hit count: 616
Hello, my question is
How can I set overflow hidden in cases where the html go's outside the screen
Right now I have set html {overflow: hidden;} in the head tag off the page. So, it's hidden all the time
In my particular case the errors that I show in the registration process cannot be seen on my 13inch laptop, but I don't want to show the scrollbars all the time.
That's why I want it to set(or unset) based on the fact if there is overflow or not.
What would be the best way?
thanks, Richard
© Stack Overflow or respective owner