[thelist] Understanding CSS with 3 digit colors ?

Joel D Canfield joel at spinhead.com
Wed Aug 20 13:20:21 CDT 2003


> please explain to me why people are defining colors with only 
> 3 hex numbers? For example:

Shorthand.

Anytime the RGB pairs are duplicate digits (e.g., '33', 'ff') they can
by written as a single digit. Therefore, instead of writing 'ff33cc' I
can write 'f3c'

spinhead


More information about the thelist mailing list