O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required