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

Thread: Colors

  1. #1
    xin
    xin is offline
    New to the CF scene
    Join Date
    Jun 2006
    Location
    UK
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Colors

    When using colors on a website, is it possible to list several colors in the code so that if someone viewing my site doesn't support the main color, the browser will select the next one in the list? For example, when you want to be sure your choice of font is used, you might have: font-family: Lucida Grande,Palatino Linotype,verdana; in your code.

    If the same is applied with colors, e.g: color: #CC0000, #CC33CC, #9933CC; will a browser select from my list if the first color in the list is not supported by the viewers computer? or will it default to black? As I say, I know it works with fonts, but honestly have no idea if it's the same with colors!

    (I have chosen web safe colors so far but find they are not giving me the range I need)

  • #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
    Have you actually tried what you are asking? You would see that it doesn't work if you tried it. It should default to black if it can't display a color. There are no ways of providing alternate colors at least not yet. Maybe in CSS3.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    xin
    xin is offline
    New to the CF scene
    Join Date
    Jun 2006
    Location
    UK
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There are no ways of providing alternate colors at least not yet. Maybe in CSS3
    Oh no! Well let's hope CSS3 does bring that option! I daren't use non web safe colors as my website would look hideous in black!

  • #4
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    I don't think anyone pays attention to web safe colors anymore because this is not quite so relevant a concept anymore. But who knows, I could be wrong?

    I think you should just go ahead and use the full color palette. The few people out there with very old monitors shouldn't prevent everyone else from seeing the full range of colors.

  • #5
    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
    Most systems now days can display most colors. I don't think its that big of an issue any more.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #6
    Regular Coder croatiankid's Avatar
    Join Date
    Jan 2006
    Posts
    665
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Yes I haven't heard or seen someone using 256 in at least 6-7 years


  •  

    Posting Permissions

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