O'Reilly logo

The Book of CSS3, 2nd Edition by Peter Gasston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10

COLOR AND OPACITY

Image

Color in CSS2 was based around the Red, Green, Blue (RGB) model; whether you used hexadecimal or rgb() function values, you had to combine those three colors to add color to your pages. Of course, designers speak in terms of shades and tints: When a designer 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 opacity through ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required