[thelist] CSS: colour attributes
David Dorward
david at us-lot.org
Sun Aug 11 20:55:01 CDT 2002
On Sat, 10 Aug 2002 03:20:55 -0400
Frank <framar at interlog.com> wrote:
>
> As far as I understand, colour can be specified in a number of ways in
> HTML and CSS
>
> "white" a limited number of named colours.
>
> "#FFFFFF" hexadecimal, three groups of two.
The above are acceptable in HTML, the rest are CSS only.
> rgb(255,255,255) three groups representing, red, green blue.
>
> 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.
Its shorthand, with #abc == #aabbcc
Described in section 4.3.6 of the CSS 2 specification.
http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color
--
David Dorward http://david.us-lot.org/
HTML email is a bit like using coloured paper and glitter ink on a CV.
More information about the thelist
mailing list