O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

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

Using Gradient Backgrounds

Gradient backgrounds, also new in CSS3, allow you to create transitions from one color to another without using images (Image and Image). The specification is still in flux, but browser support is increasing as the specification is inching closer to being finalized.

Image Five ways to implement gradients using only CSS.

<body><div class="horizontal"></div><div class="vertical"></div><div class="diagonal"></div><div class="radial"></div> ...

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