Creating an External Style Sheet

External style sheets are ideal for giving all the pages on your Web site a common look. You can define all your styles in an external style sheet and then tell each page on your site to consult the external sheet, thus ensuring that each will have the same settings.

To create an external style sheet:

1.
Create a new text document in your text editor of choice.
2.
Define the style rules for your Web pages as described in Chapters 914 (Figure 8.1).
Figure 8.1. Use any text editor you like to write CSS documents. This is WordPad.

3.
Save the document in a text-only format in the desired directory (Figure 8.2 ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide 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.