[theme-reviewers] Using wp_enqueue_style() With IE Conditionals

Jess Planck jess at funroe.net
Thu Apr 21 23:56:39 UTC 2011


Order and specificity are both at play in CSS. There are some decent things written about "CSS scope" that are very interesting. 

It's one one of the reason I avoid using   #ID in the enterprise-ugly multiple sites I deal with. .CLASS is much easier to override and use for creating compound designs while #ID seems to make a better JavaScript target. 

Jess

On Apr 21, 2011, at 5:51 PM, esmi at quirm dot net <esmi at quirm.net> wrote:

> on 21/04/2011 23:07 Otto said the following:
> 
>> The problem is that stylesheet order doesn't actually matter. CSS is
>> all about specificity of the definitions.
> 
> <snip>
> 
> Order *does* matter. Take two identical rules in separate sheets and the later one takes priority. That's how child themes work, after all. :-)
> 
> I take your point about specificity but I've got themes that use html in some rules. and given that I tend to be pretty specific when writing CSS anyway, some of them could be damn hard to over-write using pure specificity. I'd argue that there still have to be mechanisms available for plugin authors, developers, users etc to load later sheets.
> 
> Mel
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers


More information about the theme-reviewers mailing list