W3C home > Mailing lists > Public > www-style@w3.org > November 2005

RE: CSS Organizer (feedback pleas)

From: Peter Williams <PWilliams@nci.net.au>
Date: Wed, 2 Nov 2005 10:34:16 +1100
Message-ID: <8BAABB3E85A2344E82C53B60B6041524052D20@melsbs01.nci.corp>
To: <www-style@w3.org>

> From: Lonnie Best
> 
> I just through together a tool that organizes CSS.
> http://www.lonniebest.com/FormatCSS/
> I was hoping you had a minute to look at it and test it out.

The alphabetising as only way of ordering isn't helpful.
I tried it with a stylesheet from a customer site and it
threw away the comments and groupings I had in the sheet.

It is easier to understand and maintain styles if there is
a sensible grouping of style rules that match page sections
or functions.

For example, I had all nav menu styles grouped together
and labelled with comments. Similarly I had all the generic
page elements grouped together. In some cases it may be good
to sort alphabetically within those groupings, but as David
has noted, arbitary changes in the order of things can
change the results, the a element is a good case with its
LVHA ordering of the pseudo-elements being needed for proper
functioning of the styles in many cases.

-- 
Peter Williams
Received on Tuesday, 1 November 2005 23:33:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:41 GMT