www.webdeveloper.com
Results 1 to 7 of 7

Thread: specifying colors

  1. #1
    Join Date
    Nov 2002
    Posts
    421

    specifying colors

    you can specify colors in hex or rgb. they both seem to work fine in all the browsers i have tested. which do you use and why? rgb seems much more intuitive to me.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,247
    Well, I could specify the same cyan color as:
    Code:
    color: #0ff;
    color: #00ffff;
    color: rgb(0,255,255);
    color: rgb(0,100%,100%);
    I'll use one of the first two methods since (1) I'm used to it, and (2) they're a lot easier to type.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Nov 2002
    Posts
    421
    i got started using the rgb method because that is easy to translate the color to graphics programs and such. they usually ask for the rgb values. hence my comment about being intuitive.

    but your point about less code is a good one.

    i was concerned that there may be a standards issue using the different forms, but that does not appear to be the case. they all seem to work fine on my xhtml pages.

  4. #4
    Join Date
    Jul 2005
    Location
    USA
    Posts
    3,910
    I use both hex methods (the first two NogDog listed).

    I use Paint Shop Pro which allows you to enter colors in both forms.
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions

    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

    Check out my blog.

  5. #5
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    10,413
    I'm with NogDog. I use #0FF or #00FFFF. Photoshop actually gives the hex color in a box I can copy, but the R, G, and B values are all in separate boxes, so it takes longer to copy them. Also it's more convenient to use hex.
    Visit Slightly Remarkable to see my portfolio, resumé, and consulting rates.

  6. #6
    Join Date
    Sep 2005
    Posts
    15
    hey all you color freaks i got a software for you where u can actually get a cool color combination the software is "Color Shade" "Color wheel pro" and mind you Color wheel pro is a really usefull software.

  7. #7
    Join Date
    Feb 2005
    Posts
    345
    spam!

    no need for software imo.

    http://www.alvit.de/handbook/#colortools

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles