Previous | Next
Full View
Contents of Syntax for a CSS Document
Syntax for a CSS Document
- I use NotePad for my CSS documents.
- I can control the placement of the attributes better in NotePad than I can in Dreamweaver.
- Because CSS is like programming there is a placement and syntax that must be followed.
- Use American spelling - for example color rather than colour.
- The placement is more of a convention so that you can tell where the various attributes are which makes it easier to edit.
- It is a good idea to include a description of what the CSS element is supposed to do so that if someone else edits the CSS later, they know what they are editing.
- I didn't do this because I am the only editor and now can't quickly remember what is supposed to do what.
- Start with the top level attributes and work down to the lesser ones.
- For example font family, font size, headings, lists and so forth.
Copyright Karen McCall, Karlen Communications
13