IE6 and the !important rule 10.08.2008 @ 05:13pm 113 comments
There are some people out there that believe IE6 does not support the !important declaration but it does. However, it supports it in it's own IE6 way which I will explain.
It works fine as long as the property you are applying the !important rule to is only declared once in that selector. For example, the following would work fine in IE6:
#mybox {
background-color: #f00;
border: 1px solid #c00;
height: 100px !important;
padding: 20px;
}
However, if you were to try this next block of code, it would not apply the !important height and will apply the other height declaration instead:
#mybox {
background-color: #f00;
border: 1px solid #c00;
height: 100px !important;
height: 150px;
padding: 20px;
}
So remember, only declare your property once within a selector if you would like it to be !important.
What people think...
There have been 113 comment(s) on this entry so far. Have something you'd like to say? Feel free to comment below.
Rummy said...
08.09.2010 @ 07:23am
50% of users using IE still use IE6....people are reluctant to move to IE 7 which has the reputation of being a little slow
escort said...
06.09.2010 @ 01:28pm
nice for text. i like
moshxsoft said...
05.09.2010 @ 02:53am
thansk's for this fix
Andrew said...
03.09.2010 @ 12:32am
"I think that IE has many disadvantages. So it is better to use FireFox. "
Agreed, no more help for IE6 users. We need to make them upgrade lol
Syahrizal said...
01.09.2010 @ 12:22pm
I think that IE has many disadvantages. So it is better to use FireFox. Thank you for your information.
Замуж за американца said...
27.08.2010 @ 03:12pm
I'll keep in mind.
Thank for this information.
James Eduard said...
26.08.2010 @ 11:01am
Wow, I never imagined IE6 can be that complicated but thanks to you guys, you have cleared any doubts left in me.
call from mobile
career counselling said...
26.08.2010 @ 10:16am
Very informative article Aeronautical Engineering Colleges In India & Isp Jobs
Yoga Blog said...
26.08.2010 @ 04:30am
IE 8 has taken over now and more and more people are shifting towards Mozilla and Chrome but from website owners point of view, the website should work seamlessly in IE6 as well
sports basketball said...
23.08.2010 @ 08:24pm
IE6 ?
important rule?
I should test that?
great?
nursing board exam said...
23.08.2010 @ 08:23pm
1e6 are great, thanks for this information thank you
Rache-Ideen said...
23.08.2010 @ 05:35pm
Rache ideen sind so wichtig damit man sich an seinem ex rächen kann. Sich an seiner ex rächen kann oder seine kollegen voll in die irre führen und sich an den kollegen rächen kann. Rache ist blutwurst und wir wollen Rache. Denn Rache und Blutwurst gehören zum rächen wie das bier zur wm. Rache Ideen und Strategien wie man sich richtig rächen kann findet ihr bei mir auf der Seite mit Rache-ideen. Insbesondere natürlich auch rache tips im rache blog. so rächt man sich richtig.
Free Itunes Codes said...
22.08.2010 @ 01:37am
I am glad they got rid of IE6. IE8 is better but even though I don't use it. I enjoy Firefox much more.
small wedding ideas said...
12.08.2010 @ 02:26pm
IE6?
important rule?
I prove? Wedding program samples
ice maker troubleshooting said...
12.08.2010 @ 02:09pm
thanks for your information IE6 and the !important rule...
Boys' Mountain Bike said...
07.08.2010 @ 04:27am
Find the latest and greatest deals on boys' bikes at boys-mountain-biikes.co.uk - vist now by clicking the link above.
ebooks said...
06.08.2010 @ 12:31am
Haha, yeah... I think this is a little outdated now. Good old IE6.
Cloth Diapers said...
05.08.2010 @ 08:25am
Even Wikipedia said that it is "the worst tech products of all time". I didnt have many problems with it, but it does have a few security issues.
Yahoostore Designer said...
05.08.2010 @ 04:21am
Thanks For the interesting Posting,I am awaiting Your Posting.
Blog Literature said...
01.08.2010 @ 07:14am
Since the basic purpose of the internet is to share the knowledge and to communicate with each other, I can say that forum and blogs are playing one of the important role in sharing the knowledge and to communicate with each other.
michigan mesothelioma lawyers said...
29.07.2010 @ 09:13pm
nice tip
instant online auto insurance said...
29.07.2010 @ 09:04pm
thank mate
Accident Claim said...
29.07.2010 @ 09:04pm
cool
escort bayanlar said...
28.07.2010 @ 06:20pm
thanks so much all admin turkiyenin 1 numarali eskort ilan servisi
rolelx watches said...
24.07.2010 @ 08:56pm
where you can buy the best watches at lowest price?
some friends tell me the watches from the web http://www.rolexclassic.com/ have good quality and their service is the best
Here you will see rolex watches ,omega watches,breitling watches,chanel watches,cartier watches and so on.
What do you think? Have you ever gone to the web?what do you think of it?
John Henderson said...
21.07.2010 @ 05:40am
Such an intricate thing! But, resolved using a simple snippet. Thanks a lot! But, IE seems to have a number of problems! Need some one like you to resolve those!!!
Plyometric Exercises said...
20.07.2010 @ 02:29pm
Yeah, IE6 is getting a little outdated, I've used firefox for the last couple years, and only had to revert back a couple times for a couple sites.
araby software said...
19.07.2010 @ 03:43am
simple information that so useful
UK Laptop Batteries said...
19.07.2010 @ 01:34am
There are other fixes which displays the perfect PNG in IE6 using some js, but this is a quick fix if you have fireworks.
Gina said...
14.07.2010 @ 04:05pm
There's no possibility that IE6 will be better then FireFox...NEVER!!!!
Radial HQ said...
14.07.2010 @ 06:08am
It's more !important to use a browser like firefox....
Paisley Bedding said...
12.07.2010 @ 05:57pm
Although this is good for IE6, I think all sites should stop supporting it. My work uses IE6 and I hate it.
World Travel said...
11.07.2010 @ 12:42am
This is very useful. I'll try it, I hope to try it. I saw the comments, there can not be tried.
Bijuterii argint said...
10.07.2010 @ 08:44am
One of the many reasons why I am using FireFox.
Bijuterii Argint
Web Design
Kindle Vs Nook said...
07.07.2010 @ 06:46am
Thank god they are stopping IE6 usage. All these exceptions are annoying.
prom dresses said...
07.07.2010 @ 04:25am
Your effort is very much appreciated! Your post about the subject has been far-reaching which makes it compelling to utilize. Many thanks!
prom dresses said...
07.07.2010 @ 04:24am
I really like your blog very much and i hope you will continue this good work in the future as well
reverse telephone lookup said...
01.07.2010 @ 10:07am
well.. I am not new to your blog but in first elegance.. really appreciate your blog. There is much original and great content that peaks my interest. I am going to bookmark your blog and keep checking you out.
reverse phone numbers said...
01.07.2010 @ 10:05am
thanks for sharing...Found quite helpful so far
reverse telephone directory said...
01.07.2010 @ 10:05am
you might be known with your fact before ..anyways happy to read your blog post
sexy costumes said...
29.06.2010 @ 08:27pm
thanks for good articles
projector screens said...
28.06.2010 @ 11:28am
for me all se is great...
projector screens said...
28.06.2010 @ 11:27am
simple information that so useful
Radial Direct said...
27.06.2010 @ 04:29am
IE8 is better, so just use IE8 or Firefox.
Gucci Shop said...
24.06.2010 @ 02:29am
Your aritcle is very helpful for me,good job!
Blog Djerba said...
23.06.2010 @ 09:35pm
Excellent detailed post. Appreciate it, thanks.
french roulette table layout said...
22.06.2010 @ 02:23pm
I'm using it along with my fav Firefox.
Web design Darwin said...
10.06.2010 @ 10:22pm
I think IE6 is out of date now because IE has lot of updated version now. Like IE8 which is one of my favorite now.
High Resolution Retina said...
08.06.2010 @ 03:37pm
Very interesting & helpful. Thanks for sharing
Roof Bars said...
04.06.2010 @ 04:01am
Ah, the joys of IE6!
Shiloh Street said...
25.05.2010 @ 08:04pm
Excellent details. Much appreciated, thank you!
devdas said...
22.05.2010 @ 04:49pm
ver godd..
Annie @Spam Blacklist said...
22.05.2010 @ 06:07am
thanks for sharing your knowledge in CSS I admire you a lot this tips you've share will help me excel in my web development skills.
Reef said...
19.05.2010 @ 04:47pm
a few people have commented to upgrade to ie8, can any one confirm that this browser version handles this rule better?
Many BTU said...
13.05.2010 @ 11:04pm
I've found that IE6 doesn't seem to want to do anything correctly. This article should be titled 1,000,000 important rules.
Premium Cigar said...
13.05.2010 @ 03:59pm
Just the simple fact that you had to explain it to us means that it is difficult for the typical user, me.
But you did do a good job on explaining it though!
Net Age | Web Design said...
12.05.2010 @ 03:53am
This is a nice straight forward tip that will save somebody lots of hair pulling at some stage. One of the great joys of the internet is the sharing of knowledge and experiences by everybody, truly adding to the global collective pool of information.
For somebody who spent most of his youth in the library searching for knowledge this repository has proven to be akin to Aladdin's Cave, a real treasure trove! Thanks for adding to the collective, guys!
horse fence said...
11.05.2010 @ 06:46am
Nice share... Thank you.
convert mp4 said...
10.05.2010 @ 04:39am
I am trying it out.
Slow Computer said...
07.05.2010 @ 04:10pm
IE and the folks at MSN should not wonder why folks question their commitment to web standards when you see examples like the one in this post. Thanks for the help.
Mary Joy said...
06.05.2010 @ 10:46pm
Let me check that important rule, looks very interesting :)
5s system said...
30.04.2010 @ 01:44pm
It`s quite fascinating that the worlds bigges IT company are not able to create a browser that works just as well as Firefox and Chrome..
motorcycle exhausts said...
29.04.2010 @ 01:45am
Internet Explorer 6 SP1, the most recent version of the Internet Explorer 6 core technologies in Windows XP Home Edition
Buddy said...
28.04.2010 @ 03:49pm
Thank's for sharing us. nice info..
cana said...
28.04.2010 @ 10:48am
looks BETTER to me than travesti typical web practice, in that the travesti story source link is more clearly labelled than it travesti would be elsewhere. This looks like another pointlessly spiteful travesti (let's do it 'cause we can) American-style lawsuit to me.
asd said...
28.04.2010 @ 10:48am
Lutilisation de vos dépenses flexibles expliquent travesti (FSA) pour la thérapie de massageest une travesti autre façon valable pour se maintenir avec votre habitude de massage. Les comptes flexibles de dépenses sont établis parvotre travesti urnisseur d'assurance maladie pour gérer de l'extérieur de coûts de votre médecin standard travesti visite chaque an.
Scrabble Cheat said...
28.04.2010 @ 02:35am
IE6 is really a pain... and really hard to kill... I still have 10% of my visitors that use IE6 on my website...
wii game reviews said...
17.04.2010 @ 10:23am
Nice share... Thank you.. :)
Travel Insurance said...
14.04.2010 @ 02:04pm
really good post .. thanks
Used Smart Cars For sale said...
14.04.2010 @ 08:05am
Thanks for sharing this information. I want to know about IE8
Replica Rolex Watches,Dvd Boxes said...
14.04.2010 @ 12:53am
I would like to share with you a good watches website which the quality of watches are very good. It looks so elegant and practical. I am deeply satisfied with it, especially the price, which is amazing cheap! I got a 10% discount coupon that I want to share to you. The coupon code is 6fc44181e9.
They sell many Swiss watches. Such as supply Replica Chanel Watches, replica B.R.M Watches for sale, Copy Rolex watches, replica Omega watches, buy replica Christian Dior watches, Fake Gucci watches, Supply Replica ontblanc Watches, replica Cartier Watches, replica Richard Mille Watches, Wholesale Replica Ebel Watches and so on.
If you want to buy a watch decorated yourself, I think www.offerreplicawatches.com and www.replica-watches-all.com is your best choice. lol is 91238796313901
News Shopping Center said...
10.04.2010 @ 04:04am
update ie6 to new release. is IE8
Limoges Boxes said...
07.04.2010 @ 11:49am
Even though many are saying they don't like IE6 it is still a good browser for me.
Kredittkort said...
05.04.2010 @ 06:38pm
What about the later versions of IE? Are they just as crappy, or have they fixed this? It`s quite fascinating that the worlds bigges IT company are not able to create a browser that works just as well as Firefox and Chrome..
Kitchen Design MA said...
05.04.2010 @ 02:26pm
Thanks for the good read.
Design Build MA
Credits Finance said...
03.04.2010 @ 10:53pm
thanks for info and tips.
regards
Herdion C Saputro said...
02.04.2010 @ 08:21pm
I wish IE6 would just go away
chicago limousine service said...
01.04.2010 @ 06:56am
IE6 is also a good browser but I just can't use it totally for SEO.
Yudhi said...
31.03.2010 @ 12:49pm
Nice tricks, thank you very much
Design Build MA said...
30.03.2010 @ 01:24pm
Good rule! This will help me in the future!
Netrix said...
29.03.2010 @ 10:20pm
I've always succumbed to the !important stuff when I need IE6 to behave. I count on the fact that it'll read that second declaration but all the other more standards-complaint browsers will not.
Little Info | Netrix blog's | Iklan Gratiz | Free Ads
Badru said...
29.03.2010 @ 06:13am
Nice Tips ...
Thx
Web Design Dubai said...
25.03.2010 @ 08:59am
I have used IE6 before and I think it is not as good as Firefox and IE8.
Dubai Web Design said...
24.03.2010 @ 03:19am
When I build my computer, my first browser is IE6 and I've used it for a long time. But when I have discovered Firefox I have seen a lot of difference on them and I much like the Firefox.
Ndut said...
23.03.2010 @ 04:46am
thanks for your information IE6 and the !important rule...
lijfrente uitkering berekenen said...
22.03.2010 @ 11:12am
IE8 is much better dan IE6.
seo analysis said...
22.03.2010 @ 08:19am
The day people stop using IE6 is the day our all our lives become less complicated. We're down to 9% of users using that browser. Thank Chrome for eating into the IE browser market!
Study and Work Australia said...
18.03.2010 @ 11:06am
I have never used IE6 but I think I want to try it to find out if the comments here are true.
Chicago Printing said...
14.03.2010 @ 06:24am
I never tried IE6 but from you have done a great article about. Congrats. why does people hate IE6?
Tech Guy said...
07.03.2010 @ 07:14pm
I wish IE6 would just go away
superonline said...
07.03.2010 @ 04:28am
Firefox is better than explorer,but thanks for your post
Check Toner said...
05.03.2010 @ 02:04pm
I've seen scripts designed to crash anyone using IE6. It's more !important to use a browser like firefox.
Fuel said...
03.03.2010 @ 04:54am
I count on the fact that it'll read that second declaration but all the other more standards-complaint browsers will not.
multinivel said...
18.02.2010 @ 03:51am
Are this problem with newest versions?
Akupunktur said...
16.02.2010 @ 01:33pm
ie6 is problem and google do not support ie6 any more
Ca Mortgage said...
02.02.2010 @ 10:42pm
I would prepare to use firefox
يوتيوب said...
27.01.2010 @ 06:24pm
I've always succumbed to the !important stuff when I need IE6 to behave. I count on the fact that it'll read that second declaration but all the other more standards-complaint browsers will not.
مزيكها على كيفك said...
26.01.2010 @ 07:36pm
thankxxxx
solve sudoku said...
11.01.2010 @ 04:08am
Im working on my solve sudoku website and just wanted to say thanks for the blog
leads said...
04.01.2010 @ 08:49pm
I never knew that IE6 supports the declaration in programming codes. Its good to know now.
Ereccion said...
04.12.2009 @ 06:27am
I tried IE6 and I am not satisfied with it. So i shift to other internet browser which is the Mozilla Firefox.
Darba piedāvājumi said...
20.11.2009 @ 01:31pm
IE is still like pain in the a**. I had problems with quiz embedding in my web page just because of IE. And 50% of my visitors are using IE. That's really sucks.
Free Samples By Mail said...
07.10.2009 @ 04:02pm
Nah, IE6 is a failure, why should I bother to use it anymore? IE8 is better, so just use IE8 or Firefox. That's the best browser my ver.
Reliable VPS said...
28.09.2009 @ 01:57am
One of the many reasons why I am using FireFox.
Kevin said...
27.09.2009 @ 07:47am
I never use IE6 anyway, but now since IE8 is out, I'm using it along with my fav Firefox. No problem as far as I remember :)
cheap laptop computer
Poptropica said...
26.09.2009 @ 11:42am
i can't ...... hmmm
Fee Ringback Tones said...
26.09.2009 @ 11:40am
thanks for your information IE6 and the !important rule...
arab-ia said...
15.09.2009 @ 10:26pm
thanks
IE6 is big problem
Edinburgh removals company said...
13.09.2009 @ 02:36pm
What a surprise that IE will handle things in it's own unique way.
Can you detect the sarcasm.
replica said...
04.09.2009 @ 10:13pm
IE6 ?
important rule?
I should test that?
Josh said...
13.11.2008 @ 09:54pm
I've always succumbed to the !important stuff when I need IE6 to behave. I count on the fact that it'll read that second declaration but all the other more standards-complaint browsers will not.
Add your thoughts
Fields in bold are required.
Latest entries
Categories
Who am I?
I am Jenna Smith - a front end web developer who has been busy coding XHTML & CSS for the last 6 years. If you are interested in seeing my work or getting in touch you can do so through my growldesign website.
Relationships said...
08.09.2010 @ 07:31am
I never tried IE6 but from you have done a great article about. what is limerence? Congrats. why does people hate IE6?