CSS colors

TorgoX on 2004-11-04T02:29:57

Dear Log,

Colornames for CSS. Maybe handy, maybe not.


The point of CSS

Juerd on 2004-11-04T08:35:38

is gone when you use the colour name in the class name.

<font color=green>foo</font>
<span class=green>foo</font>

Still need to go through the source to change the colour now.

Re:The point of CSS

TorgoX on 2004-11-04T08:54:11

Usually. Not always. Look out, I know what I'm doing!

Autogenerated?

dlc on 2004-11-04T23:15:48

I like this. I assume you autogenerated it; I fiddled with it a bit, and came up with:
perl -wlne 'next if /^#/; @bits = split; printf ".$bits[3] { color #%0.2x%0.2x%0.2x }\n", @bits[0..2] if @bits == 4' /usr/X11R6/lib/X11/rgb.txt
This will generate a list much like what you've got.