Results 1 to 8 of 8

Thread: style scrollbar colours

  1. #1
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default style scrollbar colours

    Hey all,
    I have placed this in the stylesheet:

    Code:
    body{
    margin: 0;
    padding: 0;
    font: 14px "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, sans-serif;
    background-color: white;
    scrollbar-face-color:white;
    scrollbar-arrow-color:white;
    scrollbar-track-color:white;
    scrollbar-shadow-color:white;
    scrollbar-highlight-color:white;
    scrollbar-3dlight-color:white;
    scrollbar-darkshadow-Color:white;	
    }
    and this between the </head> and <body>:

    Code:
    <style type="text/css">
    <!--
    body
    	{
    	scrollbar-face-color:#666666;
    	scrollbar-arrow-color:white;
    	scrollbar-track-color:white;
    	scrollbar-shadow-color:white;
    	scrollbar-highlight-color:white;
    	scrollbar-3dlight-color:white;
    	scrollbar-darkshadow-Color:white;	
    	background-attachment: fixed;
    }
    -->
    </style>
    and still I see the normal scrollbar. How come ?

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    The scrollbar coloring only works in IE. Also, you should only have to place it in either the stylesheet or between the <head> tags wrapped in <style> tags.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    I truly believe that if something is IE only, it's not meant to be tampered with. If someone has their default scrollbars changed to limegreen, and all of the sudden Internet Explorer comes up changing the scrollbar color to bright purple.
    Sometimes these things can be left alone .
    - Mike

  4. #4
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    It also sometimes feels as if the webite is leaking out into your browser window...
    But very VERY few browsers change the scrollbars via CSS, so its a waste of bandwidth to implement it.
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  5. #5
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    It also sometimes feels as if the webite is leaking out into your browser window...
    Could you explain that to me, please ?
    Also, as in Europe still 93 &#37; uses IE; why not play with it ?

  6. #6
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    Because unless the viewer is a middle school kid, the scrollbar either annoys them or annoys them. Or, they don't care. So, the only reason you would do this is if you found it exciting. If you find it exciting and don't care that your viewers don't, go for it.

    Now, for the code, I see nothing wrong with it. Beats me.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  7. #7
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    Because unless the viewer is a middle school kid, the scrollbar either annoys them or annoys them. Or, they don't care. So, the only reason you would do this is if you found it exciting. If you find it exciting and don't care that your viewers don't, go for it.
    I'll take this as a personal view, and ignore it. As you surely know, there is a huge difference in the building of sites in the US and Europe. F.ex. flashy pages are still a hype in EU, although not recommended. Scrollbars are the same: lovely in EU. So I go with the flow ...

  8. #8
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    Still doesn't work. I placed the following in the css, and removed the other in the html.
    Code:
    body{
    margin: 0;
    padding: 0;
    font: 14px "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, sans-serif;
    background-color: white;
    scrollbar-face-color:black;
    scrollbar-arrow-color:white;
    scrollbar-track-color:white;
    scrollbar-shadow-color:white;
    scrollbar-highlight-color:white;
    scrollbar-3dlight-color:white;
    scrollbar-darkshadow-Color:white;	
    }

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
  •