Making a CSS document is simplicity itself. A CSS document is nothing but a plain text (ASCII) file, saved with the ".css" file name extension; remember to follow all of the regular naming rules for any file name on the Web (NO SPACES IN THE NAME!).
Example CSS Document Names:
myStyles.css styleSheet.css michaelStyles.css
The content for a CSS document usually follows this format:
Example:
/* Style Sheet for Widget Website Michael Masumoto -- michael@michaelmasumoto.com */ /* Begin General Site Styles */ p { color:#000000; font-size:14pt; } b { font-weight:bold; } /* End General Site Styles */ /* Begin Home Page Styles */ etc...
Remember: there are NO HTML tags in a CSS document. CSS IS NOT HTML! There is no HEAD, no BODY, no TITLE, no HTML tag, no HTML of any kind! A CSS document is linked to an HTML page using a special tag on the HTML page itself, not on the CSS document; we'll talk about the specifics of this linking process in a later section. In a CSS document, you are just defining the way HTML is going to look; you're not actually using HTML.
Copyright © 2001 Michael Masumoto. All Rights Reserved.