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 6 of 6
  1. #1
    Regular Coder
    Join Date
    May 2006
    Posts
    128
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Scrollbar appearance, CSS and DOC TYPE

    I've noticed that when I try to define the scrollbar appearance, it only works when the DOC TYPE is not specified or html transitional. If I specify the DOC TYPE as XHTML transitional then the scrollbar colours don't change. Why is this happening and how do I get the scrollbar colours to display irrespective of the DOC TYPE?

    Thanks

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You need to apply them to the html element as well
    Code:
    html, body {
    /*scrollbar color stuff*/
    }
    FYI scrollbar colors only work in IE.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    May 2006
    Posts
    128
    Thanks
    3
    Thanked 0 Times in 0 Posts
    thanks for your help...it's a nice visual bonus for IE users I think. Any particular reason why it has not been implemented by other browsers?

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Because there is this theory that web developers shouldn't mess with the users browser controls. Its always been a microsoft thing. Opera I believe allows its users to allow scrollbar colors to work.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Regular Coder
    Join Date
    May 2006
    Posts
    128
    Thanks
    3
    Thanked 0 Times in 0 Posts
    I suppose that this theory doesn't apply to web designers

  • #6
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,387
    Thanks
    32
    Thanked 288 Times in 282 Posts
    Not messing with the user’s browser controls is in part an accessibility issue; for example, I’ve seen some web designers make the scroll‐bar virtually one color such that you couldn’t tell what the scroll position was or where the scroll position bar was. Another reason for their lack of implementation is probably because the scroll‐bar properties are proprietary to Microsoft and not part of any of the W3C’s CSS specifications.

    I did a quick test with Opera 9 about two weeks ago and was only able to get those CSS properties to work while Opera was in quirks mode, so I’m not sure if you can get them to work in that browser’s standards‐compliance mode.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

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