Forum Moderators: open
how i can?
In FF and Opera you can get rid of the scrollbar (even if the scollbar *should* appear) by setting:
body {
overflow:hidden;
} But you won't get able to get at the contents which is out of view! In IE6 the scrollbar will ALWAYS show on the body.
body :) It’s actually on
html in IE. Which is wrong, I’m pretty sure: I think it’s meant to be on body. Anyway, update it to this:
html, body { overflow: hidden; } … and IE 6 and 7 will remove the scrollbar just fine.
Actually, it’s not that IE will always display the scrollbar, it’s that the scrollbar isn’t on body :)It’s actually on html in IE. ...
Ah, OK, thanks for the clarity! :)
I notice that in IE6 (may be 7?) that you can still get at the hidden contents by selecting the content and moving up/down with the mouse. But not in FF or Opera.
I tend to avoid a practice like this just for kicks (for instance if someone wanted their own customised scrollbar colours etc) because it’s a user interface control that should not be mucked with by designers.
I could quote Spiderman right now but I think I’ve done it before and I’ll just sound like an old man repeating stuff I’ve already said… :)
<style type="text/css">
html, body { overflow:auto }
</style>
Once you resize the window, ithe scrollers will be displayed automatically.
Regards
Qasim Ali