Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Scrollbar always shows

    Hi,
    I'm working on a three column layout in CSS/XHTML, with the middle column scrolling. For this I use
    Code:
    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?

  • #2
    Regular Coder BoldUlysses's Avatar
    Join Date
    Jan 2008
    Location
    Winston-Salem, NC
    Posts
    938
    Thanks
    10
    Thanked 190 Times in 187 Posts
    Have you tried

    Code:
    overflow-y:auto;
    ?

    You should know that overflow-x and overflow-y attributes aren't universally supported like the plain overflow attribute 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!
    matt | design | blog

  • Users who have thanked BoldUlysses for this post:

    tamasys (12-22-2008)


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •