Chapter 10. Color and Opacity

image with no caption

Color in CSS2 was based around the Red, Green, Blue (RGB)model; whether you used hexadecimal notation or the rgb color value, you had to combine those three colors to add color to your pages. Of course, designers speak in terms of shades and tints: When one of them says to use a “50 percent tint” of a certain color, developers have had to use the RGB model to match that color, which has often involved some chicanery with a graphics package to find the exact tone needed.

The CSS Color Module (http://www.w3.org/TR/css3-color/) has a solution to that problem—and more besides. For starters, it introduces the concepts of ...

Get The Book of CSS3 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.