Chapter 3Images and Other Design Elements

The Web is filled with sites featuring beautiful, rich graphic design that takes advantage of the power of CSS. In this chapter, we’ll look at how to use CSS and images to create gorgeous effects. We’ll be using images more in subsequent chapters, but, as with most of the solutions in this book, feel free to experiment to see what unique effects you can create.

How do I add borders to images?

Photographic images, which might be used to illustrate an article or be displayed in a photo album, look neat when they’re bordered with a thin line. However, it’s a time-consuming process to open each image in a graphics program in order to add borders, and if you ever need to change a given border’s color or ...

Get The CSS3 Anthology, 4th Edition now with O’Reilly online learning.

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