Creating Site Designs

So far, you've been working with single-page layouts and designs. One of the benefits of using CSS, however, is to standardize the look-and-feel of an entire site, not just a single page. To demonstrate this, you use the preceding example you created of Christmas safety tips, expanded to encompass more than just the front page of general tips.

I've already created example files for the different pages of the Christmas safety tips site. These files are with the other example files, named xmastips2.html, xmastips3.html, and so on.

Creating an External Style Sheet

First, you need to create your external style sheet. An external style sheet contains exactly the same codes you nest inside of a page's STYLE element, but in this ...

Get Cascading Style Sheets (CSS) by Example 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.