Appendix D. CSS Color Reference

As covered in detail in Chapter 7, there are five methods to specify color values in CSS:

  • Descriptive color names

    color: red;
  • System color names

    color: AppWorkspace;
  • RGB hexadecimal values (including a three-character shorthand)

    color: #ff0000;
    color: #f00;
  • RGB decimal values

    color: rgb(255, 0, 0);
  • RGB percentage values

    color: rgb(100%, 0%, 0%);

This appendix provides a complete reference to the first two methods—color names. The CSS2 Recommendation prescribes a set of 16 descriptive color names, which are presented in Table D-2. Netscape proposed an additional 124 color names, which are supported by practically every graphical browser available today, and are presented in Table D-3. Finally, CSS2 also ...

Get HTML Utopia: Designing Without Tables Using CSS now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.