HTML and CSS Reference
In-Depth Information
Figure 4-1 The dark background color compared to the background image applied in Chapter 3.
You can change that using RGB:
1. In styles.css, find
body {
background-color: gray;
2. Change the gray keyword to #f5f5f5.
3. Save styles.css.
Because the background image still takes precedence over the background color, you might want to comment out
the background image to see the change you just made (See the sidebar Using Comments and “Commenting
Out”). Remember to uncomment it again after you view the change.
body {
background-color: #f5f5f5;
/* background-image: url(“../images/bg-body.jpg”); */
Using Comments and “Commenting Out”
Search WWH ::

Custom Search