[thelist] style sheet organization

ben morrison morrison.ben at gmail.com
Tue Oct 31 03:17:44 CST 2006


On 31/10/06, Joel D Canfield <joel at spinhead.com> wrote:
> is there a recommended order in style sheets for selectors and/or
> properties? obviously stuff works more or less whatever order it's in,
> or my fairly random styles wouldn't function. but other than the
> recommendations I've found for styling links (LVHA) I can't find any
> info on when, or if, it matters what order padding, margin, float,
> width, etc. are declared.


The only thing that really matters is the specificty, which is why we
use LVHA, Malarkey wrote an 'interesting piece' about this along with
good references & comments:

http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html

ben
-- 
Ben Morrison



More information about the thelist mailing list