Is there a way to hide scrollbars in IE8?

Do you know if there is a way to skip scrollbars in IE8? I have a full empty .html site and loaded in IE8 and scrollbars appear.

I searched the net for a while, but could not find any hint. Is this allowed with CSS or do I need Javascript?

Every hint is much appreciated.

+6
javascript css internet-explorer
source share
3 answers

You can use the CSS overflow property to hide scrollbars:

html, body { overflow: hidden; } 
+11
source share

If your blank HTML page complies with the standards (to some extent I suppose), IE8 will not display scrollbars. You do not need CSS. Here's a sample page that won't have a scrollbar:

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <title>test</title> </head> <body> <p>hello</p> </body> </html> 

If IE8 displays a page in Quirks mode, it will always have scroll bars. You can check exactly how to use it (and test different visualizations) in the "Developer Tools" window (press F12). The Browser Mode and Document Mode settings at the end of the menu bar will tell you.

+6
source share

You can try to do overflow:hidden; in your css file, in tags, html tags.

+1
source share

All Articles