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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Change scrollbar color in div

    Hello dear friends,
    I am using the code:

    <div style="width: 190px;height: 250px;overflow:-moz-scrollbars-vertical;overflow-y:auto;">
    <p>
    Some text
    </p>
    </div>

    At the website: http://lithosluxury.com/lithos-prope...imassol-cyprus

    How can I change the color of the scrollbar?

    Thanks a lot


  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,703
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    The scrollbar look is a component of the operating system and is very different on different OS’s (take Apple’s Aqua look, for example), and therefore cannot normally be changed with CSS. There are JavaScript solutions, though. You just have to use the search functionality of this forum or on the internet generally, it’s not hard.

  • #3
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    837
    Thanks
    11
    Thanked 79 Times in 77 Posts
    ☠ ☠RON☠ ☠


  •  

    Posting Permissions

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