If you decided to use embedded or external style sheets you will make the entire process much easier if you have a system of organization for those times when you’ll be returning to make changes and search for errors.
It is best to place the major structural elements of you site in at the top of the style sheet. For example, the <body> element would be first followed by the <p> styles. Then you should put the remaining styles in a logical order like alphabetically, or by style type.
It is recommended the you place the ID selectors ahead of CLASS selectors and so on.
Adding comments is highly recommended, mostly on external stylesheets. This is a great way to search and quick reference long lists of style you are using.
A comment line is identified by <!--add comment and close it like this -->
CSS is a rapidly expanding method for creating consistent and controlled web sites. We have provided quick overview and synopsis of the reasons for using CSS and some basic concepts on how to best implement it into your web design. We want you to share your tips and techniques. Please visit our Help Forum to learn and share the wealth of knowledge about CSS and how you can greatly benefit from this powerful design system.
Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License