Forum Moderators: open

Message Too Old, No Replies

What Code can i put in to stop my scrollbar scrolling

         

midi25

6:18 pm on Jul 11, 2002 (gmt 0)

10+ Year Member



Hi i have put in an IFrame in my pages. The problem is i still have my main scrollbar on my page. I would like to set this to no scrolling so then the page would look much better. How can I do this in HTML. And would I put it in the Body Or Style Tags. Thanks

moonbiter

6:35 pm on Jul 11, 2002 (gmt 0)

10+ Year Member



<style type="text/css">
body {
overflow: hidden;
}
</style>

Note that this won't prevent a visitor from scrolling by highlighting overflow text and dragging down, but it should get rid of the scrollbar.

rewboss

6:05 pm on Jul 12, 2002 (gmt 0)

10+ Year Member



It's bad design, though. If the visitor is using a large text size, he or she won't be able to see some of the content.

This is especially bad with navbars, because then screen resolution also comes into play. I have lost count of the number of times I have had to "drag-scroll" a navbar just so that I could find the link.

moonbiter

10:39 pm on Jul 12, 2002 (gmt 0)

10+ Year Member



It's bad design, though.

I agree. Still, I can see a few situations where it would be appropriate: for example, a web application hosted on an intranet where you know your users' setup. Or on a non-commerce site where you are trying to achieve a special effect.

I'm sure there are others.