!important is not important!

Thursday 18th September

Break your addiction to !important and make the web a better world.

Within 400 pages of specification, just over half of a page of CSS2.1 is dedicated to discussing !important rules. Most of that discussion relates to the relationship between author style sheets and user style sheets; you know, that feature that no-one ever uses. So the entire body of formal specification relating to “!important”, as it is used today boils down to 2 sentences:

Also, the third author rule will lose to the second author rule since the second rule is “!important”. This shows that “!important” declarations have a function also within author style sheets.

Hardly significant, is it? So why is it I find myself currently working with a set of style sheets containing some 433 !important declarations? Granted, this is a lot of CSS I’m dealing with — 8870 lines in total — but that’s still a hell of a lot of declarations being marked as !important.

It all boils down to the breaking of inheritance and a subsequent slew of !important rules which attempt to fix the problem, but only serve to heighten it. I’m rapidly reaching the conclusion that !important should hardly ever be used, and if you find yourself reaching for this ‘safety net’, think again. There’s an obscure IE hack which could, theoretically justify its use but, as you know, I detest hacks with something of a passion, so, ideally, I’d like never to come across the !important rule ever again. Please.



Wed 10 Dec 2014 18:42

cialis canada 5mg

cialis canada 5mg said:

I’m not sure where you’re getting your info, but good topic.

I needs to spend some time learning much more or understanding more.

Thanks for excellent information I was looking for this information for my mission.

Fri 12 Dec 2014 08:56

cialis from canada

cialis from canada said:

It’s not my first time to visit this web site, i am browsing

this web site dailly and get nice information from here all

the time.

Tue 16 Dec 2014 11:21

buy cialis online us pharmacy

buy cialis online us pharmacy said:

I am curious to find out what blog platform you have been utilizing?

I’m experiencing some minor security problems with my latest blog and I would like

to find something more risk-free. Do you have any solutions?

Thu 18 Dec 2014 19:34

canadian pharmacy cialis

canadian pharmacy cialis said:

Having read this I believed it was really enlightening.

I appreciate you finding the time and energy to put this content together.

I once again find myself personally spending a significant amount of time both reading and leaving comments.

But so what, it was still worthwhile!

Sun 21 Dec 2014 09:45

cialis 20mg

cialis 20mg said:

Hello, I think your web site could possibly be having browser compatibility problems.

Whenever I take a look at your web site in Safari, it looks fine however, when opening in Internet Explorer, it’s got some overlapping

issues. I just wanted to give you a quick heads up! Aside

from that, fantastic site!

Mon 22 Dec 2014 14:20

buy cialis online pharmacy

buy cialis online pharmacy said:

Hey There. I found your blog using msn. That is an extremely smartly written article.

I’ll be sure to bookmark it and come back to learn more of your

useful information. Thanks for the post. I’ll definitely


Wed 24 Dec 2014 03:51

cialis discount pharmacy

cialis discount pharmacy said:

You really make it appear so easy with your presentation however I in finding this topic to be really one thing that I feel I’d by no means understand.

It sort of feels too complex and extremely extensive for me.

I am having a look ahead on your subsequent post,

I’ll attempt to get the hang of it!

Wed 24 Dec 2014 07:01

is generic cialis safe

is generic cialis safe said:

Hey There. I discovered your blog the use of msn. This is a very well written article.

I will make sure to bookmark it and return to learn more of your helpful info.

Thank you for the post. I will certainly return.

Tue 30 Dec 2014 05:31

generic viagra canada

generic viagra canada said:

There is certainly a great deal to learn about this issue.

I love all the points you've made.

Tue 30 Dec 2014 08:26

buy drugs online

buy drugs online said:

Wow! This blog looks exactly like my old one! It’s

on a entirely different topic but it has pretty much the same page layout and

design. Superb choice of colors!

Tue 30 Dec 2014 11:09

buy cialis canada

buy cialis canada said:

Pretty section of content. I just stumbled

upon your web site and in accession capital to assert that I acquire

in fact enjoyed account your blog posts. Anyway I will be subscribing to your feeds

and even I achievement you access consistently quickly.

Thu 1 Jan 2015 06:53

canadian drug stores

canadian drug stores said:

With havin so much written content do you

ever run into any problems of plagorism or copyright violation? My blog has a lot of unique content I've either created myself or outsourced but it looks like a lot of it is popping it up all over the internet without

my authorization. Do you know any techniques to help protect against content from being ripped off?

I’d really appreciate it.

Thu 8 Jan 2015 09:07

medications com

medications com said:

whoah this blog is magnificent i really like reading your articles.

Stay up the great work! You understand, many individuals

are searching around for this info, you could aid them greatly.

Sat 10 Jan 2015 14:37

ed drugs

ed drugs said:

An outstanding share! I've just forwarded this onto a colleague who had been doing a little homework on this.

And he actually ordered me lunch due to the fact that

I discovered it for him… lol. So allow me to reword this….

Thank YOU for the meal!! But yeah, thanx for spending time to discuss this matter here

on your internet site.

Mon 12 Jan 2015 16:27

walmart prescription prices

walmart prescription prices said:

Valuable information. Fortunate me I discovered your site accidentally, and I’m stunned why this coincidence didn’t came about earlier!

I bookmarked it.

Fri 16 Jan 2015 20:42

Canadian generic pharmacy

Canadian generic pharmacy said:

each time i used to read smaller articles that as well

clear their motive, and that is also happening with this

paragraph which I am reading now.

Fri 16 Jan 2015 21:48

Viagra online pharmacy canada

Viagra online pharmacy canada said:

Thankfulness to my father who stated to me on the

topic of this blog, this webpage is actually awesome.

Sat 17 Jan 2015 13:00

Northwestpharmacy com review

Northwestpharmacy com review said:

You are so awesome! I don’t think I've truly read through a

single thing like that before. So wonderful to discover another person with

a few unique thoughts on this issue. Really.. thank you for starting this up.

This website is one thing that is needed on the internet, someone with

a little originality!

Sun 18 Jan 2015 19:43

Tadalafil 20 mg canada

Tadalafil 20 mg canada said:

Hey there, You have done an incredible job. I will

definitely digg it and personally suggest to my friends.

I’m sure they will be benefited from this web site.

Mon 19 Jan 2015 08:40

Canadadrugsonline com

Canadadrugsonline com said:

An interesting discussion is definitely worth comment.

I do think that you ought to write more on this subject, it might

not be a taboo matter but usually people do not talk about these topics.

To the next! Best wishes!!

Wed 21 Jan 2015 04:02

canadian pharmacy cialis

canadian pharmacy cialis said:

Hi there! I could have sworn I've been to this site before but after reading through some of the

post I realized it’s new to me. Anyhow, I’m definitely happy I found it and I’ll be book-marking and checking back often!

Wed 21 Jan 2015 20:12

online pharmacy cialis

online pharmacy cialis said:

I am truly grateful to the holder of this web page who has shared this impressive piece of

writing at at this place.

Thu 22 Jan 2015 11:03

prescription medications

prescription medications said:

The Universal pharmacy is basically very affordable if you are from whatever parts of the our

society. The price is affordable for anyone and everyone; you should want of purchasing

it. Once decision is manufactured, look at the right retail

outlet. Following obtaining the medicine, you possess consumed it.

Just take the tablets with simple h2o. buy cialis in canada

Wed 4 Feb 2015 13:51

cialis online canada

cialis online canada said:

Hi there to all, the contents existing at this website are really awesome for people experience,

well, keep up the nice work fellows.

Mon 23 Feb 2015 17:35

how to buy cialis from canada

how to buy cialis from canada said:

Greetings, I think your site might be having browser compatibility issues.

Whenever I look at your site in Safari, it looks fine but when opening in IE, it has some overlapping

issues. I simply wanted to give you a quick heads up! Other than that, excellent blog!

Leave a comment