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

11

GRADIENTS

Image

In this chapter, the last of the quartet about decorative properties, I cover CSS gradients. A gradient in this context is the gradual transition between two or more colors—a design standard for many years and one that you might think would be fairly simple to translate into CSS, but which has a long and tortured history on the Web.

CSS gradients were first introduced in WebKit in 2008 and made their way into Safari 4. The syntax they used, however, was completely different from the one you’ll see in the rest of this chapter and was deemed too complex by other browser vendors. Various other proposals were put forward (and even implemented) ...

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