Advanced Search

Results 1 to 4 of 4

Thread: Overflow and Scrollbars

  1. #1
    Join Date
    Nov 2007
    Location
    USA
    Posts
    170
    Thanks
    8
    Thanked 22 Times in 22 Posts

    Default Overflow and Scrollbars

    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!
    What is obvious to you might not be to another.


    My Site

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Use overflow-y: scroll; instead.

    Good luck!
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

  3. #3
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    672
    Thanks
    1
    Thanked 110 Times in 108 Posts

    Default

    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

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    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.
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

Tags for this Thread

Bookmarks

Posting Permissions

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