View Full Version : Overflow and Scrollbars
Moshambi
02-21-2009, 07:30 AM
Hi,
I have set my overflow to scroll, it doesn't need to scroll horizontally but it still shows up with a scroll bar at the bottom. Is there any way I can get rid of this?
Thanks!
Snookerman
02-21-2009, 08:47 AM
Use overflow-y: scroll; instead.
Good luck!
coothead
02-21-2009, 09:30 AM
Hi there Moshambi,
our friend Snookerman has suggested that you use...
overflow-y: scroll;
...but it doesn't exist in CSS level 2.1.
It will be in CSS 3 and some browsers may already have adopted it
but I would suggest that it would be safer for you to use...
overflow: auto;
..which will put the scrollbars where they are actually required.
coothead
Snookerman
02-21-2009, 10:08 AM
It is CSS3 but I can't think of any popular browser that doesn't support it. I think even IE5 supports it. Except for a small validation error (if you know what you are doing it doesn't really matter) there will be no other issues. overflow: auto; might do it in this case, depending on what Moshambi is looking for, but it's not the same thing. overflow-y: scroll; is useful if you want to have a vertical scrollbar in Fx even if there is no need for scrolling, just like in IE. This will get rid of that jump that occurs when the scrollbar appears.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.