Chapter 11. Chrome

Chrome

The chrome (or “skin”) of a Web page is made up of the visual elements that give it its look and feel. Using backgrounds, you can add visual elements to your page to frame and highlight the content of your Web page and guide the user’s eye around.

Although images are often thought to be embedded directly into the page using the <img> tag, this severely limits the versatility of your designs by hard coding the images into the structure. Instead, most Web designs place all graphic interface element on the page using the CSS background property, and reserve the HTML image tag strictly for content such as photos, illustrations, and ...

Get Speaking in Styles: Fundamentals of CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.