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 14 of 14
  1. #1
    Regular Coder
    Join Date
    Dec 2003
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    the scrollbar and colors

    ive seen some pages(including this one) that have funky scrollbars. i would like to know how to do it. all of your advise has never failed so ill thank you in advance!

    as i(and many others too) alwais say,

    thanks in advance
    david

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Leave the scrollbars alone - they are a part of MY browser (which thankfully does not allow such manipulations), not your webpage.
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #3
    Regular Coder
    Join Date
    Dec 2003
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts
    my webpage???
    .............................................
    i think you are alittle confused...

  • #4
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I found this in 3 seconds using the Forum Search facility . Use it, it rocks

    Code:
    body{
      scrollbar-3dlight-color:#999999;
      scrollbar-arrow-color #999999;
      scrollbar-base-color:#DDDDDD;
      scrollbar-darkshadow-color:#999999;
      scrollbar-face-color:#DDDDDD;
      scrollbar-highlight-color:#DDDDDD;
      scrollbar-shadow-color:#DDDDDD;
      scrollbar-track-color #CCCCCC;
    }

    **edit: You shouldn't change colours of the scrollbars because it makes them less visible for people with poor vision, the colour blind, etc.
    If you must change them, take a screen shot of you scrollbars and the default one and convert them both to black and white.
    Now, does your scroll have as high contrast as the default one?
    If not, change it!.
    This discussion/argument has been done almost bi-monthly since I've been
    using the forum and I'm sure much earlier than that.
    Last edited by mindlessLemming; 01-08-2004 at 08:09 AM.

    I take no responsibility for the above nonsense.


    Left Justified

  • #5
    Regular Coder
    Join Date
    Dec 2003
    Location
    USA
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by warhammerdude20
    my webpage???
    .............................................
    i think you are alittle confused...
    I believe he is not. The scroll bar is a part of the UI of the browser, and therefore is not a part of your site.
    Thankfully, I use FireBird, and am therefore not subjected to the horrendous, outrageous practice of changing the scrollbar colors.

  • #6
    Regular Coder
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Although it's possible in Internet Explorer to change the colors of scrollbars, it's definitely not recommended.

    First, many people like to keep their browser's user-interface the way it is. They don't like it changed.

    Secondly, it's not valid CSS code. You'll never have a shot at writing correct, valid code if you use the scrollbar CSS that mindlessLemming just posted.

    Internet Explorer for Windows is the only browser that will display it. The overwhelming majority of people on this forum use Mozilla, Mozilla Firebird, Safari, or Opera.

    Although some people are perpetually cranky and fairly unhelpful (despite pleas to start being nice), I will simply say this: Yes this code will work, but please don't use it.

    Hope this helps!

  • #7
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    846
    Thanks
    15
    Thanked 10 Times in 10 Posts
    I use it on some of my websites. I feel that it is my website the user is visiting and I should display the site and the browser (when possible) to the way my site.

    At least we don't install useless toolbars onto your IE, Netscape, etc without you knowing or adding SpyWare to your computer. It is a free country (at least here in Canada it is, don't know about you americans). If we want to change our colours, it is our choice.
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Skyzyx
    Although some people are perpetually cranky
    If it wasn't for some people's crankiness, you wouldn't get the chance to show off your diplomacy

    As to the matter in hand - consider this - is a book readable by virtue of having read it? If you write a book, do you care whether others can read it? Is the book for you, or is it for the reader? That's your choice.
    Last edited by brothercake; 01-08-2004 at 05:28 AM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #9
    Regular Coder
    Join Date
    Dec 2003
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    jeez...

    i just wanted to know how to do it...

    but never mind. sheesh!

    i must have sent some ripples in the water when i disturbed some ancent law where its forbidden to ask questions about scrollbars... im just a person who wants to know how to do something!

    again, sheesh.

    thanks anyway...

  • #10
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is why I told you to use the search facility...
    You would have instantly found the code you needed and avoided hearing our collective rantings. Topics of accessibilty vs. design can get quite heated round here

    I take no responsibility for the above nonsense.


    Left Justified

  • #11
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    http://msdn.microsoft.com/workshop/s...llbarColor.htm

    Anyway, you should know that scrollbars CSS works for IE only.

    And... If a webpage, hm, maybe... I say maybe, they can be considered as part of the browser not the page...

    What about the iframes? Or scrollable DIVs?... They are CERTAINLY parts of web page, so let me, as a web designer, color them as I like...
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #12
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts
    so let me, as a web designer, color them as I like
    Just to put my foot in: most browsers allow the user to apply their own style sheet, just as I did to revert any scrollbar coloring... Significant in this context is that in the later CSS versions, the user style sheet takes precedence over the one coming with the page...
    Bottom line: you as designer can do everything you want to create a beautiful web page, and the user can do anything he/she pleases to wreck it!
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #13
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Seems OK ronaldb66, that was my point too. I feel free to promote my vision on a webpage, the user may feel free to overchange...

    But... there is a contradiction here. If user can use his own fonts, his own background color, his own scrollbar-style... why not build his own entire web page overwriting mine entirely and leave me change my job

    I would not mind change the job, but the ideea is:

    The marketing principles say, so far, that a product will be bought or rejected according to the client, if he accept or not that product. Or if , in our case, user may and wants to overwrite most of my webpage attributes, and others' pages as well, why shoulh he and how will he be able to make a selection?

    maybe this could be solved if, on a web page, we will invite the user to chage if he wants to, some of the layout but using our setting not his...
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #14
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Golly, another thread where people post the same thing as the last person again and again ....

    Alrighty to summarize it:
    1. You can change the colors of the scrollbar using the styles as posted a few posts up.

    2. You shouldn't change the colors of scrollbars, I don't care who you are or what you do you shouldn't do it. This is not just my oppinion but the oppinion of many seasoned developers and of course people who browse your websites. I have debated this (and swayed a few people I think ) in pretty much every thread on this topic in this forum with the very same argument everytime, so instead of just repeating it I'll let you search to find out why.

    3. Please you the search facility in future.

    Thread closed ....
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

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