Learn HTML Code Tutorial Reference Guide

ORGANIZING YOUR CSS

If you decide to use embedded or external style sheets you will make the entire process much easier and have a system of organization for those times when you return to make changes and search for errors.

It is best to place the major structural elements of your site at the top of the style sheet. For example, the <body> element should be 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 that 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.


 
HOSTING / DESIGN

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   Privacy Policy   |   About
Copyright ©1997-2002 Idocs and ©2002-2011 HTML Code Tutorial