O'Reilly logo

Beginning CSS Web Development: From Novice to Professional by Simon Collison

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

CHAPTER 5Color, Backgrounds,and Images

The beauty of CSS is that it allows us to separate presentation from content. The entire core content such as text and key images are locked up in the (X)HTML, leaving all the actual styling kept tidily separated in the style sheet. Therefore, the style sheet is the place to specify all the creative stuff, including color and placement of decorative images.

Applying color to text and containers is pretty easy using CSS, as is the application of background images, although it is important to plan ahead and ensure the minimum number of images are used for maximum effect. That said, background images are the key to realizing the creative potential of CSS-based web design, and they literally transform your ...

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