D

CSS Colors

This appendix references the available CSS color keywords as documented in the W3C CSS 3 candidate recommendation. With the exception of IE 6 not supporting the spelling of lightgray with an a, as in its American spelling, and IE 6 not supporting other gray color keywords spelled with an “e”, as in the British spelling, all of the following keywords are supported in all of the major browsers.

The following sections show colors as sorted from light hue to dark hue.

Reds

images

images

Blues

images

images

Greens

images

images

Yellows

images

Browns

images

Grays

images

Get Beginning CSS: Cascading Style Sheets for Web Design, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.