For ordering statements I usually start with broad statements and then get narrower. Then within this list I sort by html statements and then my IDs and classes as they fall in the page from top to bottom. As for selectors I go in this order
positioning display margin padding background (minus color)(image, position, repeat) text (family, size, weight, then any extras like line height) text color background color I don't know why but I like to see any color information at the end, grouped together. Call me quirky! :) Chris On Fri, 3 Sep 2004 15:19:12 +1200, Sean <[EMAIL PROTECTED]> wrote: > Does anyone know if there is a common way of listing styles in CSS? I > don't mean the order of a:hover a: visited, or the order of > specification. I am thinking more of some logical order that would be > helpful to anyone else working on stylesheets I have created. > > For example, perhaps the font and inline information is first, the > block, padding and margin information next, and then the positioning. > > In the same way that naming conventions of CSS classes and IDs is > helpful, is anyone aware of any logical or consistent order in which > the styles are displayed in CSS? > > ****************************************************** > The discussion list for http://webstandardsgroup.org/ > > Proud presenters of Web Essentials 04 http://we04.com/ > Web standards, accessibility, inspiration, knowledge > To be held in Sydney, September 30 and October 1, 2004 > > See http://webstandardsgroup.org/mail/guidelines.cfm > for some hints on posting to the list & getting help > ****************************************************** > > ****************************************************** The discussion list for http://webstandardsgroup.org/ Proud presenters of Web Essentials 04 http://we04.com/ Web standards, accessibility, inspiration, knowledge To be held in Sydney, September 30 and October 1, 2004 See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
