Working with Graphics
In This Chapter
Working with the
Displaying foreground images
Displaying background images
Placing graphics on the page
Working with repetitive images
Content comes in a number of forms, but the two most common forms are text and graphics. CSS provides a number of methods for dealing with both of these forms. Earlier chapters of this book focused on text. This chapter begins your foray into graphics.
Most developers rely on premade graphics to create sites. So this chapter focuses on the mechanics of working with graphics — the techniques used to present them onscreen, rather than on any design or aesthetic element of graphics. Of course, the starting point for most graphic elements is the
<img> tag. Even though the
<img> tag isn't strictly a CSS element, knowing about the tag is essential if you want to use CSS to control the presentation of graphics.
An object can contain any number of foreground images and a single background image. (The ...