View Single Post
  #1 (permalink)  
Old 02-09-2008, 05:10 AM
espmartin's Avatar
espmartin espmartin is offline
Senior Member
1088 posts this year. Platinum VIP!
Trusted Member - This user is a Master!
Last months UKWW Tokens: 3
 
Join Date: Jun 2007
Location: West Coast, USA (California)
Posts: 963
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default CSS File Structure

There are many ways to structure your exterenal CSS rules. What I do
is place style style rules inline, separating each block with line spaces:
Code:
div ul {list-style: none; margin: 1em 0;}
p ul li {display: inline; color: #000;}
Some people will do this:
Code:
div ul {
     list-style: none; 
     margin: 1em 0;
     }
p ul li {
     display: inline;
     color: #000;
     }
Also, you can group each selector by their function. For example,
you can group navigation elements together, followed by typography, etc.

What I do is simply list them according to source code placement.
How do you all do yours?
Reply With Quote