Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

It is recommendable to type the color's name instead of its hex value in CSS?

I always forget what colors I'm dealing with in CSS when I see it hex value. I would like to use the name instead (e.g color: lightgreen). Is it supported by all browsers? (or only the basic 16 colors)?

like image 322
alexchenco Avatar asked Jan 13 '10 04:01

alexchenco


1 Answers

CSS uses 17 standard colors. These are all safe to use. There are also system colors whose values is system and browser dependent but might be useful for integrating into system defaults but this is deprecated by CSS3 Color (for whatever that is worth).

like image 192
cletus Avatar answered Oct 19 '22 09:10

cletus