« Return to Thread: Replacing class="alignright" etc Was: Re: Linking stylesheet to RSS feeds

Re: Replacing class="alignright" etc Was: Re: Linking stylesheet to RSS feeds

by Simon Wheatley-3 :: Rate this Message:

Reply to Author | View in Thread

On Wed, Jun 17, 2009 at 9:03 AM, Eric Marden <wp@...> wrote:

>
> You can override them with the !important flag, but I wouldn't really
> recommend it unless required.
>
>
...and if you think it is required, think again just to check it actually
is. You might be better increasing the specificity of your rules [1].


Ugh, I had to style a plugin (which shall remain nameless) the other week
and it's built in CSS seemingly had !important at the end of every line,
which then infected my CSS (to override it I had to start adding !important
everywhere) and the whole thing ended up looking like a dogs breakfast.
</moaning>

S

[1] http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html

---
Sweet Interaction Ltd is Registered in England/Wales, no. 6610741
Registered office: 7 Malton Av, Manchester, M21 8AT
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

 « Return to Thread: Replacing class="alignright" etc Was: Re: Linking stylesheet to RSS feeds