View Full Version : Scrollbar always shows

Dec 19th, 2008, 04:37 AM
I'm working on a three column layout in CSS/XHTML, with the middle column scrolling. For this I use

div#center {
overflow-y: scroll;
The problem is that the scrollbar always shows, rather than just when it is needed. This leaves an ugly white space in Firefox 3.0 for Mac (what I use), I'm not sure how other browsers handle it. Is there any way to fix this?

Dec 19th, 2008, 04:54 AM
Have you tried



You should know that overflow-x and overflow-y attributes aren't universally supported like the plain overflow attribute (http://www.w3schools.com/css/pr_pos_overflow.asp) is. Fortunately with careful sizing and attention to detail the latter should be able to take care of the whole issue.

For further help, posting your whole code and/or a link to your page would be helpful.

Welcome to CF!