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

Get The Definitive Guide to HTML5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.