O'Reilly logo

The Definitive Guide to HTML5 by Adam Freeman

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

C H A P T E R  19

Using Borders and Backgrounds

In this chapter, I introduce the properties that you can use to apply background and borders to an element. These are very commonly used features that have been enhanced in CSS3. For example, you can now create borders with curved edges, use images for borders, and create drop shadows for elements. These might seem like simple things, but their omission from CSS has led to endless efforts to provide these features in other ways, with mixed success. Table 19-1 provides the summary for this chapter.

Image

Applying a Border

Let's start with the properties that control borders. These are very commonly applied ...

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