By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,836 Members | 2,023 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,836 IT Pros & Developers. It's quick & easy.

Remove vertical scrollbar from IE when in standards mode

P: n/a
When in quirks mode, IE seems to be able to display pages without any
vertical scrollbar:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style>
body {
overflow: hidden;
}
</style>
</head>
<body>
foo
</body>
</html>

But, when showing the same page in standards mode, IE always shows a
vertical scroll bar:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
<html>
<head>
<style>
body {
overflow: hidden;
}
</style>
</head>
<body>
foo
</body>
</html>

Firefox shows the page with no scrollbars in both cases.

Does anyone know how I can completely remove / hide the vertical scrollbar
in IE when using standards mode?

Thanks,

Nathan
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Nathan Wallace" <na****@synop.com> wrote:
Does anyone know how I can completely remove / hide the vertical scrollbar
in IE when using standards mode?


Don't post code to the group, post a url that demonstrates the problem,
minimize the example:
http://www.spartanicus.utvinternet.i...s_help_you.htm

--
Spartanicus
Jul 21 '05 #2

P: n/a


Nathan Wallace wrote:
When in quirks mode, IE seems to be able to display pages without any
vertical scrollbar:
body {
overflow: hidden; But, when showing the same page in standards mode, IE always shows a
vertical scroll bar:

With IE 6 in standards mode the <html> element is the one for which
overflow influences the window scrollbars so if you use
html, body { overflow: hidden; }
you should get what you want independent of the rendering mode. IE also
knows overflow-x and overflow-y so maybe you only want
html, body { overflow-y: hidden; }

Of course the usual disclaimers that killing scrollbars is not a good
idea apply.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.