Results 1 to 16 of 16

Thread: CSS Styles...

  1. #1

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116

    CSS Styles...

    You know you can change the scrollbar colour by using a CSS style? I was wondering what else on the page you could change by this - specifically the top bar, with the maximise/minimise windows etc, but also anything else...

    Thanks in advance,


    James
    Ich widerstehe allem - nur nicht der Versuchung

    (I can resist anything but temptation)

  2. #2
    Member
    Join Date
    Dec 2002
    Location
    Delaware
    Posts
    34
    I know about the scrollbar color thing, but you CAN'T change the titlebar's color, but you CAN get rid of it from a popup window. Like this fullscreen=yes.
    Tolkien is the greatest writer ever.

  3. #3
    Hyperactive Member stingrae's Avatar
    Join Date
    Apr 2002
    Location
    Sydney
    Posts
    401
    how do you change the scrollbar colour?
    "The passion lives to keep your faith, though all are different, all are great" ... Michael Hutchence 1960-1997.

    Windows & Web Developer
    Specialising in Visual Basic .Net & Client Server Programming & Client/Customer Relations Databases
    Sutherland Shire, Sydney Australia
    www.stingrae.com.au
    Developer of Arnold - Gym & Martial Arts Database Management System
    www.gymdatabase.com.au

  4. #4
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    You can do it but it's invalid CSS and only works in IE 5+

    http://www.warriorofnight.com/booksh...ollbar_gen.htm
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  5. #5
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Also IE 6 in strict mode will ignore invalid CSS like this to be W3C compliant.

  6. #6
    Addicted Member WALDO's Avatar
    Join Date
    Aug 2002
    Location
    Swing of Prussia, PA
    Posts
    244
    Yeah, its a neat effect and growing ever more popular.

  7. #7
    Member
    Join Date
    Dec 2002
    Location
    Delaware
    Posts
    34
    body {
    scrollbar-face-color:color;
    scrollbar-track-color:color;
    scrollbar-arrow-color:color;
    scrollbar-darkshadow-color:color;
    scrollbar-shadow-color:color;
    scrollbar-3dlight-color:color;
    scrollbar-base-color:color;
    }
    Tolkien is the greatest writer ever.

  8. #8
    Hyperactive Member stingrae's Avatar
    Join Date
    Apr 2002
    Location
    Sydney
    Posts
    401
    Z-E,

    thanks for the reply. I put that in my css file and it said that was illegal. where do i put it?

    cheers,
    "The passion lives to keep your faith, though all are different, all are great" ... Michael Hutchence 1960-1997.

    Windows & Web Developer
    Specialising in Visual Basic .Net & Client Server Programming & Client/Customer Relations Databases
    Sutherland Shire, Sydney Australia
    www.stingrae.com.au
    Developer of Arnold - Gym & Martial Arts Database Management System
    www.gymdatabase.com.au

  9. #9
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    That's the choice you have to make - either have illegal CSS that changes the scroll-bar colour, or remove it and have legal CSS.

  10. #10
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065
    : I used an external .css file for The scroll bar color (so only IE will have it)

    Used this PHP (if ur server supports PHP )

    PHP Code:
        $agent getenv("HTTP_USER_AGENT");
        if(
    ereg("MSIE"$agent)){
        echo 
    "<LINK REL=\"StyleSheet\" HREF=\"".$baseurl."/template/style/ie.css\" TYPE=\"text/css\">\n";
        } 
    You should be able to do something simular with CGI or that too
    Wayne

  11. #11
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I could argue that the scrollbar is part of the web browser, not the web page, and should remain the color selecting by the user for the whole OS windowing system (ex, on Windows what you set in the Display control panel).
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  12. #12
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    You've hit the nail on the head there, Josh.
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  13. #13
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065
    Originally posted by JoshT
    I could argue that the scrollbar is part of the web browser, not the web page, and should remain the color selecting by the user for the whole OS windowing system (ex, on Windows what you set in the Display control panel).
    and then I argue:

    "Why would M$ build the function into the browser if its not meant to be used?, a waste of CPU Cycles and HD Space :\"

    Other Browsers may build the function into their browsers later, but since the Scroll Bar takes up space on the site, it does help to color it to the site, and may it "Stick with the theme"
    Wayne

  14. #14
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065
    and again,

    THEY DID

    Command buttons,
    Input Area's
    Drop Select's
    Anything you choose, they have allowed it in ie, and some other browsers allow drop lists etc.

    IE:

    http://www.search.realm-ed.co.uk/cgi...Link&Category=

    Just a quick but of changes...
    Wayne

  15. #15
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    I see what you are saying, but why didn't microsoft go the whole way and decide to allow you to change all aspects of windows based controls such as dropdown lists?
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  16. #16
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Originally posted by wpearsall
    and then I argue:

    "Why would M$ build the function into the browser if its not meant to be used?, a waste of CPU Cycles and HD Space :\"

    Other Browsers may build the function into their browsers later, but since the Scroll Bar takes up space on the site, it does help to color it to the site, and may it "Stick with the theme"
    But they did so incorrectly - they should use a prefix (-ms-, maybe) to mark it proprietary rather than add invalid CSS (and to correctly claim CSS compliance they are required to ignore invalid CSS).

    And why do you assume a browser will even have a scrollbar - the folks at the W3 who write the recommendations don't.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

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



Click Here to Expand Forum to Full Width