Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

ORGANIZING YOUR CSS

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 Design by Interspire