CSS color codes in Classic Theme (3 posts)

  1. Ahhh
    Posted 9 years ago #

    The style.css file for the Classic theme contains codes for colours that are only three digits long. Normally (?) HEX refs are 6 digits long. If I insert the 3 digit codes in the file into a converter eg: http://www.scriptsearch.com/cgi-bin/jump.cgi?ID=1178
    they are not recognised.

    Can anyone explain what these 3 digit codes are and how to translate them into the "normal" 6 digit ones (or into RGB)?


  2. vkaryl
    Posted 9 years ago #

    It's a "shorthand" for certain hex codes. There's probably a detailed explanation buried somewhere in the w3c.org files. In fact, I think moshu provided a link in a similar thread a while back. Lemme see if I can find it.

    [Edit: nope - was moi.... just a link to http://w3.org and click on CSS in the left sidebar - but only if you have a long block of uninterrupted time to dig and dig....]

  3. onocrotalus
    Posted 9 years ago #

    The shorthand is just that each number in the 3-digit code occurs twice in the 6-digit code, e.g. #123 is shorthand for #112233.

Topic Closed

This topic has been closed to new replies.

About this Topic