[thelist] CSS: colour attributes

{ schaapy } list01 at theparagon.org
Tue Aug 13 08:11:13 CDT 2002


All it is - is shorthand.

#ffffff = #fff
#ff0000 = #f00
#336699 = #369

What's happening is your six digit hex numbers are being but down into
simpler terms.

You're browser knows that #fff means #ffffff.

This isn't really a big deal unless you're writing ALOT of CSS - then it's
nice to cut out characters to save space.

Or course things like #c5ccdf; can't really be shortened so they are simply
left in their full state.


---------------------
Aaron Schaap
www.theparagon.org


> From: Frank <framar at interlog.com>
> Reply-To: thelist at lists.evolt.org
> Date: Sat, 10 Aug 2002 03:20:55 -0400
> To: thelist at lists.evolt.org
> Subject: [thelist] CSS: colour attributes
>
>
> 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.
>
> 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.
>
> Can someone point me in the right direction?
>
> Thanks.
>
>
> Frank Marion
> framar at interlog.com
>
>
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>




More information about the thelist mailing list