For those on a budget, or for those who haven’t mastered graphics application
software and therefore can’t use programs like Photoshop, you can find online
advice about pushing CSS to its limits. (And remember, you must sometimes
limit yourself to CSS when page load time is a major consideration.) Here’s
one good site that really gets a great deal of bang for the CSS buck:
http://www.sitepoint.com/
Coloring the Background ...........................................................................
The background of an element includes its border and any padding. Padding
is explored in more detail in Chapter 9, but essentially, padding adds space
around an element. Here’s an example that illustrates both the paddingand
the background-colorproperties:
<html>
<head>
<style>
h1 {background-color: silver; padding: 6%;}
</style>
</head>
Figure 6-10:
Use
graphics
programs
such as
Photoshop
to create
specialized
borders and
other visual
effects.
Chapter 6: Managing Details in Style Sheets 123