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> ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.