Results 1 to 2 of 2

Thread: css color name

  1. #1
    Join Date
    Jul 2011
    Location
    hyderabad,India
    Posts
    58
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default css color name

    hi all,
    i want to know the name of the colors used in css.please give the name of the color for the below ones......using words likr red,green....etc

    #ccc-
    #aaa-
    #000-
    #333-

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Not every hexadecimal color has a name.
    Here's a list:
    http://www.w3schools.com/cssref/css_colornames.asp

    Note that your examples above are three characters and the technically correct format is six. For example, #CCC is equivalent to #CCCCCC. (Each character is duplicated. #123 would be #112233.)


    For the future, please search for your answer before posting. That link took me 5 seconds to find, on google searching for "CSS color names".


    I don't know if all of those color terms are always compatible in every browser, so I recommend using the hexadecimal code (6 characters is best).


    Also, as a specific answer to your question, according to that list only #000 (equivalent to #000000) has a name: "black". The others don't have names. There are other similar shades of gray, however, if that's what you are looking for. See the link for more information. Or just use the hexadecimal values you have.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •