1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Double scrollbar in chrome? Css overflow

Discussion in 'CSS' started by le007, Dec 6, 2011.

  1. #1
    Hi all - I'm just after 1 scrollbar on the right, the vertical one. For some reason, the below code is producing 2 scrollbars. Any fix?

    Basically, I just want a vertical scrollbar - regardless of res or if the window is resized. Any suggestions please?

    html, body {
        height: 100%;
        text-align: center;
        overflow: -moz-scrollbars-vertical;
        overflow-x: hidden;
        overflow-y: scroll;
    }
    Code (markup):
    http://www.standoutmodels.com/team.php
     
    Solved! View solution.
    le007, Dec 6, 2011 IP
  2. #2
    If you remove Overflow-y: scroll then it doesn't appear. You have specified you want a scrollbar on your body div as well as the one normally on the browser
     
    Toycel, Dec 7, 2011 IP
  3. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    Thank you, that worked. When the window is resized, it won't horizontally scroll now. It's tricky :D
     
    le007, Dec 7, 2011 IP