I put an overflow-y into my css to prevent unnecessary scrolling but it only registered in firefox (3.0). Anyone know how to stop it in all browsers?
I put an overflow-y into my css to prevent unnecessary scrolling but it only registered in firefox (3.0). Anyone know how to stop it in all browsers?
do you totally don't want scroll bars?
if so put a overflow:none under body in your css.
none doesn't register but I have already put overflow as hidden and it only works in firefox 3.0. Any suggestions?
IE is the worst thing in the world I have tried everything to get rid of the scrollbar in the past and I have only found one call it easy way out.
1. There are some posts out there about how to do it with javascript that are extremely hard to work with but don't always work because people turn off their javascript.
2. Cheat place an <iframe> on your main page and load your information into it. Like so <iframe width="100%" height="100%" scrolling="no" border="0" src="page.html">
I have used #2 on a couple occasions and it works in most browsers, at least all that allow iframe.
thanks for these suggestions and I agree IE is the worst thing in the world and I hope it gets abolished soon. But for now as it still somehow seems the popular choice for a lot of users we must devise ways to make it function as we wish - all part of the challenge I guess!
1) yes - hard to work and relies on JS being on
2) As you mentioned I-frames don't work in all browsers, in fact I'm not sure it works in some of the major ones.
.. so back to the drawing board - anyone with any inside information on this - now is the time to step up to the plate_
Yeah for Internet Explorer!
Teehee...
<style type="text/css">
body {
overflow: auto;
}
</style>
Change auto for hidden if you never want them even where there should be.
Taken from http://www.trap17.com/index.php/css-...ar_t20688.html
Google strikes again!
Last edited by Salvatos; 10-10-2008 at 07:15 PM.
I used it in a css but it's still there dude..
no for internet explorer ... boo hoo
It worked for me on a test page... Do you have a link where I can see your page and check your source?
it's in a css so you wouldn't be able to see it anyway. Does that mean you are putting it in the main document not a css? Perhaps I could see your test page if so and see what I am doing wrong.
es raro