Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- CSS Coding Standards - Part 2


IanTurner - 4:43 pm on May 22, 2008 (gmt 0)


Okay I need to put in place some CSS coding standards as people who do work for us come up with some real wierd and wonderful stuff.

Question 2:

As a basic standard which way would you go.

Would you layout your CSS file

#mydiv
#mydiv p
#mydiv h1

p
p.classa
p.classb
h1
h1.classa

.classc

Or would you layout your CSS file

#mydiv

p
p.classa
p.classb
#mydiv p

h1
h1.classa
h1.classb
#mydiv h1

.classc

and why?


Thread source:: http://www.webmasterworld.com/css/3656519.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com