Support » Themes and Templates » CSS color codes in Classic Theme

CSS color codes in Classic Theme

  • 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)?


Viewing 2 replies - 1 through 2 (of 2 total)
  • 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….]

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS color codes in Classic Theme’ is closed to new replies.