[thelist] CSS: colour attributes

Duncan O'Neill dbaxo at ihug.co.nz
Sun Aug 11 13:59:08 CDT 2002


Frank wrote:
>
> As far as I understand, colour can be specified in a number of ways in HTML
> and CSS
> I've been seeing this "#FFF" all over the place for a long time. At first,
> I thought that it was simply sloppy code. Then I found Eric Meyer using it.
> I can't seem to find a reference that details the composition of the
> statement, even on the w3c. I'm feeling kind'a stumped, kind'a dumb.
>
> Can someone point me in the right direction?

The three-digit form is just a shorthand for the
full six-digit form. Each digit in the three-digit
form represents a duo of the same digit in the
full form. (if that makes sense)

i.e. #336699 = #369
      #444444 = #444
      #123    = #112233

http://www.htmlhelp.com/reference/css/

hth,
--
=====================================================
Duncan O'Neill
"Smith The Reporter"
http://homepages.ihug.co.nz/~dbaxo/urban_legend.htm
=====================================================




More information about the thelist mailing list