set overflow hidden in some cases
- by Richard
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