Changing the Text’s Background

You can set the background of individual elements, the whole page, or any combination of the two Image. In so doing, you can change the background of just a few paragraphs or words, links in their different states, sections of content, and more.

Image Setting the background color of the body element colors the background of the whole page. The background set on the element with the toc class distinguishes the table of contents from other parts of the page .

body {     background: #eef;     color: #909;     font: 100% "Palatino ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

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