The #id.class selector in IE6 28.08.2008 @ 02:11pm 485 comments

The ability to style an element using it's #id and several associated classes is often something that people believe is not possible in IE6. In some ways, that is true but it is possible to get this working with XHTML and CSS alone.

An example of what I am talking about can be seen below:

#feedback {
    background-color: #DFDFFF;
    border: 1px solid #4947BF;
    padding: 10px;
    }
#feedback.error {
    background-color: #FFBFC8;
    border-color: #AF4C59;
    }
#feedback.success {
    background-color: #CEFFBF;
    border-color: #64AF4C;
    }
<div id="feedback" class="success">
    <p>This is a success message</p>
</div>

Using the above XHTML markup you will notice that IE6 applies the #feedback styling and completely ignores the #feedback.success CSS. It is really quite strange how IE6 decides which rule to apply. For example, if my feedback div had the 'error' class it would apply the #feedback.error styling. So, in simple terms IE6 basically says "Check to see if the first #id.class rule matches and if so, apply it. If not, ignore the other #id.class rules and just apply the #id rule".

In order to get IE6 to pay attention to the other #id.class rules, you have to add another element inside your #feedback element that wraps it's containing markup and then tweak the CSS slightly... it's a pain, but it works. For example:

<div id="feedback" class="success"><div>
    <p>This is a success message</p>
</div></div>

Then the CSS should be tweaked to read as follows:

#feedback div {
    background-color: #DFDFFF;
    border: 1px solid #4947BF;
    padding: 10px;
    }
#feedback.error div {
    background-color: #FFBFC8;
    border-color: #AF4C59;
    }
#feedback.success div {
    background-color: #CEFFBF;
    border-color: #64AF4C;
    }

And voila! IE6 gets it... finally!

What people think...

There have been 485 comment(s) on this entry so far. Have something you'd like to say? Feel free to comment below.

Webmastr said...
02.09.2010 @ 04:14pm

Now thats awesome, man!

World Travel said...
01.09.2010 @ 12:29pm

Currently I'm learning CSS, and I'm learning to use # id.class. This really helped me in learning CSS. i'll try it. Thank you.

Northern Virginia Houses said...
01.09.2010 @ 10:07am

I love your blog because of this grat tricks i cant get anywhere else!... thanks for sharing :)

Claudia Webb said...
30.08.2010 @ 10:31am

Great to see that at least some CSS tricks work in IE6 thanks for sharing :)

jackey said...
30.08.2010 @ 03:11am

This is a some kind of a trick.. IE 6 is worst web browser which is now available.it doesn't support any kind of new technologies. I can't believe why people used this stupid browser.

avatar09 said...
29.08.2010 @ 11:58am

Nice information. I will definitelycome back to check it out once again and have subscribedto your RSS feed.

Mary said...
29.08.2010 @ 06:00am

My problem in using from IS was this, thanks for information.

Money Mutual said...
29.08.2010 @ 12:33am

Wow, that is a great trick.

Julialouis said...
29.08.2010 @ 12:29am

Good old Internet Explorer 6. I used to spend the exact amount of time having my css to work in Internet Explorer 6 as i was designing the whole site. How disappointing but it's a good tip!

biuro kredytowe

Money Mutual Reviews said...
29.08.2010 @ 12:29am

Agree, very nice trick

lyn said...
28.08.2010 @ 10:28pm

nice share !

freebiejeebies said...
28.08.2010 @ 06:05pm

Wow thanks for this i have having problems till i found this.

Rasenmäher Roboter said...
28.08.2010 @ 01:21am

This really helped me to make my new design work with IE6. I didn't know about it until I found your article.

kizoyunlari said...
27.08.2010 @ 12:12pm

nice tip. Thanks.

johnny said...
26.08.2010 @ 03:36pm

Excellent Article and well written too!

make money online

rojerr said...
26.08.2010 @ 01:12am

This is a some kind of trick..but i hate IE6.

forums said...
25.08.2010 @ 09:32am

Still useful for some sites I guess, thanks!

freebiejeebies said...
24.08.2010 @ 07:49pm

Thanks for this tip. I`m rebuilding customer`s site from tables to css and your posts saved me from going crazy

kelly said...
24.08.2010 @ 02:34am

I carefully read your blog,Content is very rich, i learned a lot, thank you

sports pilipinas said...
23.08.2010 @ 08:11pm

a lot of things i leraned

nle results said...
23.08.2010 @ 08:09pm

a good trick

Grosir Sepatu Futsal said...
23.08.2010 @ 03:58am

Nice Post, that is great information, thanks for share.

D4rkDays said...
21.08.2010 @ 10:08pm

To the point and concise, I enjoyed it. Can't say I agree with everything but my eyes are open.

valentina said...
21.08.2010 @ 01:07pm

Great coding advice!

Pictures said...
21.08.2010 @ 09:46am

Thank admin nice blog pagws.

Cell Phone Number Owner Lookup said...
21.08.2010 @ 12:08am

Good old Internet Explorer 6. I used to spend the exact amount of time having my css to work in Internet Explorer 6 as i was designing the whole site. How disappointing but it's a good tip!

Nice trick man, I will be doing these on some of my sites.

Cloth Diapers said...
20.08.2010 @ 10:06am

Great coding advice!

Vaatwasmachines said...
20.08.2010 @ 08:32am

Great trick, thanks again!

Arlington VA Real Estate said...
18.08.2010 @ 02:16pm

I've been trying to figure this out for ages! Thanks for the tip.

Kissan Hoito said...
18.08.2010 @ 12:58pm

I really learned a lot from this article, thanks a lot. Will be watching your blog in future too.

Ramza said...
17.08.2010 @ 04:16am

Thanks for this tip. I`m rebuilding customer`s site from tables to css and your post saved me from crazyness

Eugene said...
17.08.2010 @ 04:13am

Nice info...
Perfect solution for the site I am currently building and IE6 is just not playing nice with regards to multiple selectors.

Roger Martin said...
16.08.2010 @ 01:40pm

I wish you had a similar solution for a browser that is not as outdated as IE6.

airsoft minigun said...
15.08.2010 @ 01:24pm

Will this work for Firefox browser as well, because airsoft minigun is having browser issues.

Teak Furniture: Teak Garden & Teak Indoor,Teak Table,Teak Chairs said...
14.08.2010 @ 01:55pm

I ran across search engines and find this blog that fulfill my needs. There is a thing I do not agree but It doesn't matter since I think it does not hurt the whole content.
The added inshight increases my insights

actress photos said...
14.08.2010 @ 06:24am

this is little tricky trick . microsoft always for buggs. thanks for this use full information
regards

actress photos

Web Design Site said...
13.08.2010 @ 10:33pm

Wow nice articles ! I Love To Using Internet Explorer Browser !

acnefasttreatment said...
13.08.2010 @ 10:15pm

great , this is nice information..

Watch Transformers 3 Online said...
13.08.2010 @ 08:37pm

Great!

Igre said...
13.08.2010 @ 08:36pm

Fabulous!!

Bridgend Web Design said...
12.08.2010 @ 04:01pm

Yet again, IE6's rendering engine forces us to use extra markup which affects all browsers - similar to the inner/outer element fix to the box model - but why increase the page weight for everyone?

IE7.js is loaded by only the targeted browser using an IE conditional comment and works to update IE's CSS selector support. It's forwards-compatible, because as newer versions of IE are released and IE6's market share dwindles to zero, it simply won't be loaded and perfectly lean and valid HTML and CSS will remain untouched.

mosquito repellent plants said...
12.08.2010 @ 02:22pm

Very neat. Makes you wonder how microsoft make a rendering and rendering engine for buggy that simply adding a secondary element to solve the problem.

80th birthday gifts said...
12.08.2010 @ 01:57pm

I love this article

elamworld.com said...
12.08.2010 @ 12:41pm

Simple work around for ie6.

Jared said...
10.08.2010 @ 02:10pm

nice!!!

My Past Life Reading said...
09.08.2010 @ 03:03pm

Love this article :)

Seattle Divorce Attorneys said...
09.08.2010 @ 02:04am

I've seen one of these and it was a great experience. I couldn't ask more than seeing it once again.

AlsoSeek Network said...
08.08.2010 @ 05:18pm

it's cool

GigaVia said...
08.08.2010 @ 05:16pm

Many thanks, elegant tweak!

Naked Canal Video Blog said...
08.08.2010 @ 05:16pm

Thanks for nice CSS tips . I am big fan of CSS and its very simple and flexible .

Who Sex said...
08.08.2010 @ 05:15pm

i love this great blog

Berks TV said...
08.08.2010 @ 05:14pm

Apparently this IE6 hack no longer works...either that or it just didn't for me.

The Eur said...
08.08.2010 @ 05:13pm

perfect coder :)

Pokers Home Network said...
08.08.2010 @ 05:11pm

Very helpful! You'd be surprised how many non-profits and universities are still using IE6, I spent hours upon hours reworking CSS to be compatible with IE6.

Naked US said...
08.08.2010 @ 05:10pm

Thanks! I think it will be a great help for people looking for this code.

Naked Canal Network said...
08.08.2010 @ 05:09pm

Nice article, it is very useful for me, thanks.

Rank Maker said...
08.08.2010 @ 05:08pm

I find this awesome. Thanks,cheers.

Pokers Home said...
08.08.2010 @ 05:07pm

Thanks for this post. Works great for me

NC Mobi said...
08.08.2010 @ 05:06pm

Wew, how bogus is all that extra code. IE 6 is dieing a slow death. I'll be glad when it off the face of this planet.

NotWay said...
08.08.2010 @ 05:06pm

wow, thats pretty cool

NC Info said...
08.08.2010 @ 05:05pm

Better bookmark this, I'm sure it will come in handy down the road...Thanks!

Liam Guide said...
08.08.2010 @ 05:04pm

nice tips, thanks for share

Huge Job Site said...
08.08.2010 @ 05:03pm

I have just used this on one of my sites and it works a treat - excellent tip as analytics still shows I have IE6 viewers!

HkaIT said...
08.08.2010 @ 05:02pm

Great blog, good article, fine writing, thanks for sahring this.

HBC CC said...
08.08.2010 @ 05:01pm

it is cool. thank you :)

Gate For Bio said...
08.08.2010 @ 05:01pm

This is a really good article. I was looking for it. And does it work for newer versions of IE too ?

Credit Smart Risk said...
08.08.2010 @ 05:00pm

I have no idea whether it is ok with ie 8.

Club Canal said...
08.08.2010 @ 04:59pm

Well it has been a issue all times for web developers to take care of IE 6 issues. This is a nice little trick that can do for all the developers

Boroobi said...
08.08.2010 @ 04:58pm

I love your tips.

Valongo TV said...
08.08.2010 @ 04:57pm

very useful IE hack / trick and still useful as i know people who still use IE6!

ATZV said...
08.08.2010 @ 04:50pm

Great to see that at least some CSS tricks work in IE6.

Also Seek said...
08.08.2010 @ 04:50pm

Thnx,Information is very usefull , no to IE

AkyLake said...
08.08.2010 @ 04:49pm

Great stuff. XHTML and CSS are flexible and you can do possible things with it.

AdictMedia said...
08.08.2010 @ 04:48pm

That's is really cool!

Adamis Group said...
08.08.2010 @ 04:47pm

Thanks your information god luck!!

Positive pregnancy test said...
07.08.2010 @ 07:36am

It makes you wonder how does microsoft make a rendering and layout engine so buggy that simply adding a child element fix the problem.

Funky Breakbeat said...
07.08.2010 @ 04:24am

We at Crispy Beats want to introduce you to the funky breakbeat phenomenon that is sweeping the world, hop on board for track download, DJ sets and much more.

m2ts converter said...
07.08.2010 @ 04:19am

That's is really cool!

Gloria said...
06.08.2010 @ 05:21pm

It does works to replace background colors.

Pet monkeys for sale said...
06.08.2010 @ 01:05pm

Once I discussed with one of my friends, not only about the content you talked about, but also to how to improve and develop, but no results. So I am deeply moved by what you said today.

Metal table legs said...
06.08.2010 @ 01:03pm

Great artical thanks

script said...
06.08.2010 @ 02:56am

thanks for the suggestion. I like your post.

Free UK Giveaways Guy said...
06.08.2010 @ 02:34am

Thanks for this. CSS has always been a problem for me. This really helps.

Yahoostore Designer said...
05.08.2010 @ 03:52am

Thanks For the interesting Posting,I am awaiting Your Posting

Garden Trellises said...
04.08.2010 @ 09:21pm

I love your tips. You find clever ways to get around all the issues I seem to face.

Dallas Internet Marketing Joel said...
04.08.2010 @ 11:35am

Wow, this is beautiful, nice tip on the Class for IE6

aku said...
03.08.2010 @ 10:39pm

I liked the IE 8. The design and layout is so beautiful!

Rewards Program@Myzerr

Golf gloves said...
02.08.2010 @ 02:59pm

IE6 is too old now, I like IE8 and firefox to sulf websites.

Nanny said...
02.08.2010 @ 10:42am

Great Information -- It is worked applied to our website

Wow said...
02.08.2010 @ 10:39am

Good Job my website

Blog Literature said...
01.08.2010 @ 06:59am

I have been new to this blog and it is the second post I have read and I can say you have done a nice job for sharing the useful information with us.

Aeron Chair said...
31.07.2010 @ 08:23am

yes thanks your information god luck!!

Ping Pong Table said...
31.07.2010 @ 08:22am

Apparently this IE6 hack no longer works...either that or it just didn't for me.

meaning of dreams said...
31.07.2010 @ 07:13am

Great blog. I really enjoy reading. Great things that you have pointed out here.

Article Submission Directory said...
30.07.2010 @ 04:24pm

Thanks, elegant tweak!

dennis the shokz said...
30.07.2010 @ 03:10pm

Am not really into css coding, but this post is good & useful. thanks much

netigre said...
30.07.2010 @ 07:58am

usefull indeed

michigan mesothelioma lawyers said...
29.07.2010 @ 08:49pm

great post, thank for sharing

Accident Claim said...
29.07.2010 @ 08:48pm

cool design mate

instant online auto insurance said...
29.07.2010 @ 08:47pm

nice tips

Guaranteed SEO Professional said...
29.07.2010 @ 04:54am

thanks for sharing such a great trick , now i am going to try this.

Guaranteed SEO Professional said...
29.07.2010 @ 04:52am

thanks for sharing such a great trick ,now i am going to try this.

Cheap college textbooks said...
29.07.2010 @ 01:38am

wow! hard work and patience really pays off. good for you! thanks for sharing. but i don't use much of IE because it's slower than firefox. But there are programs that run well with IE, so i still get to use it at times.

Business-acre said...
28.07.2010 @ 05:21pm

very good site for newbie

forex-acre said...
28.07.2010 @ 05:21pm

Nice post and site is it ! it helps me lot from others...

DWIght said...
28.07.2010 @ 01:57pm

Thanks for this tutorial. I wish there was a similar posting that applied to the newer browser.

Pakistan Urdu News Portal said...
28.07.2010 @ 01:18am

aha a little tweak and its there good one mate

Visit my blogs here:
Free Urdu Dictionary | Muslim Baby Names | Ramadan Mubarak

kızlık bozma said...
27.07.2010 @ 05:06pm

We like this information post yes it is much needed for people who use IE6.

Public media said...
27.07.2010 @ 12:04pm

Really cool article.Thanks for sharing.

essay said...
27.07.2010 @ 08:37am

lolshto superb nax

jeux habillage said...
27.07.2010 @ 06:02am

I have the disign on my website !

Mobile Phone Recycling said...
26.07.2010 @ 02:09pm

Screw you Internet Explorer. They have to make life so much harder don't they?
Mobile Phone Recycling

sam wightwick said...
26.07.2010 @ 10:33am

Thanks! I still hate IE with a passion though!

SEO Consultants said...
26.07.2010 @ 07:16am

superb stuff, this will help me a heap

PC Boxen said...
26.07.2010 @ 02:32am

WOw i think thats nifty

Eurostar Destination said...
26.07.2010 @ 01:01am

Nice Tricks

Rpn said...
25.07.2010 @ 11:44pm

Nice trick! If you are interested in a brand new feature-rich URL shortener, check out my website!

Exotic rental car Miami said...
25.07.2010 @ 07:46am

I see good chance of success too, especially if they want to give more effort on the work. Let's do the best!

Schwarze Kreditkarte said...
25.07.2010 @ 07:37am

IE6 sucks big time...

Charmetta said...
23.07.2010 @ 02:28pm

This is great but is anyone still using IE6? Do you have this information specifically for IE8 too? Thanks.

Fashion Blog said...
23.07.2010 @ 01:43am

I wanted to make a change for my IE6, but I couldn't find any help. Thanks for sharing this information! You rock!

SEO sri lanka said...
23.07.2010 @ 01:29am

Great post..perfect blog

Reborn Babies said...
22.07.2010 @ 01:58am

This is why everyone hates ie6, can't do cool tricks.

London Paris Train Tickets said...
22.07.2010 @ 12:26am

This post is pretty nice. Does only IE6 support this.. Can I use this on higher version of IE.

starcraft 2 strategy said...
21.07.2010 @ 10:03pm

Really good trick. I was always wondering how to do it. Finally some one to demonstrate. Thank you sir!

Morocco Travel Deals said...
21.07.2010 @ 04:31pm

Nice trick. I didnt even think of that!

Whirlwind said...
21.07.2010 @ 01:25pm

Does this also apply to IE8 since IE6 is all but obsolete?

Cloth Diapers said...
21.07.2010 @ 10:46am

That was a fantastic explanation. Thank you so much!

Sharon Lee said...
21.07.2010 @ 04:30am

This is really very cool trick. keep sharing such more cool tricks.

Body Shaper Review said...
20.07.2010 @ 02:17pm

Interresting, and btw your growldesign page is looking good!

Jojo said...
20.07.2010 @ 09:51am

usefull article. Suitable to be used. I like
Wonderful Thailand Beach
UN55C8000 3D LED
Black Tv Stands

Meki Coli said...
19.07.2010 @ 11:39pm

I think ie6 will be obsolete soon..:-)Bob

ClickYourBrain said...
19.07.2010 @ 07:41am

IE6 is not modern web browser :(

araby software said...
19.07.2010 @ 03:49am

That is a great little trick.

Cheap Laptop Batteries said...
19.07.2010 @ 01:30am

Nice trick man, will be doing these on a few of my sites.

bones full length episodes said...
18.07.2010 @ 02:31am

Thanks for detailed code :0

dhilzone said...
17.07.2010 @ 12:21pm

was between one and the other browsers require a different scrip, IE6 for example. I just know ..

instant auto online insurance said...
17.07.2010 @ 09:42am

amazing comment list

Joshua Davis said...
17.07.2010 @ 07:04am

i like information .Thanks..

Computer Backups
World Wide Web Consultants

Matras said...
17.07.2010 @ 03:08am

How's the interview going on in result? It has been a year, you know.. Yet we haven't seen any remarkable achievement.

Facebook Themes said...
17.07.2010 @ 12:21am

Nice trick. Didn't know you could do that.

Facebook Themes

asics hello kitty said...
16.07.2010 @ 12:55pm

Good tips.Thank you and also your advice.

William Brown said...
16.07.2010 @ 12:50pm

Very useful blog..Thanks.

Mac Dee said...
16.07.2010 @ 04:46am

Nice tips. Thank you.
Dee

Fitness Model said...
15.07.2010 @ 06:39pm

Well... the problem is you're assuming anybody uses IE anymore lol

pornizle said...
15.07.2010 @ 03:27pm

thank admin

hobi said...
15.07.2010 @ 12:26pm

thank you admin. Thannkkkks

PC Boxen said...
15.07.2010 @ 11:27am

wow thats nifty. I love your blog because of this grat tricks i cant get anywhere else!

güncel blog said...
15.07.2010 @ 08:28am

That is a great little trick.

mp3_dinle said...
15.07.2010 @ 08:24am

very good

namecom said...
15.07.2010 @ 08:02am

this ver sitey

Denem said...
15.07.2010 @ 08:00am

Deneme comment

William Brown said...
15.07.2010 @ 07:10am

Nice post.......

Chrysalis Living Wellness
How-to-Grow-Your-Own

Personal Injury Claim Value said...
14.07.2010 @ 11:35am

Wow..thanks for the nice info

Alexander Jones said...
14.07.2010 @ 10:12am

Thanks for information .Good luck..

Smokindss
Choic
Best Weather


Alexander Jones said...
14.07.2010 @ 10:08am

Thanks for information .Good luck..

Smokindss
Choic
Best Weather


Denver Website Designs said...
14.07.2010 @ 02:38am

I think I can use this little code for CSS in website designs I carry out for various websites..but I will try it for other browsers as well if it is compatible with them or not...:)

Dentist Worcester MA said...
13.07.2010 @ 06:10pm

Very neat. It makes you wonder how does microsoft make a rendering and layout engine so buggy that simply adding a child element fix the problem. You use the code above to replace a background-color on a div.

I'm trying to use a class to replace a background-image on a div. The method above doesn't seem to work on what I am trying to accomplish.

Geschenke said...
13.07.2010 @ 01:54pm

Good tipp, but the ie6 is dying...and thats great ;-)

видеонаблюдение said...
13.07.2010 @ 09:10am

Apparently this IE6 hack no longer works...either that or it just didn't for me. /.

видеонаблюдение said...
13.07.2010 @ 09:09am

We all knows that microsoft dont care about the community

Global Suppliers said...
13.07.2010 @ 01:39am

very useful post

Oriental Bedding said...
12.07.2010 @ 06:00pm

I think this is great because it cleans up the css a bit. I have been doing this for a while.

Ethan Johson said...
12.07.2010 @ 12:25pm

nice tip. Glad i found you.

http://memoirdvd.com

Burlington Accountant said...
12.07.2010 @ 11:06am

Thanks for the share! I'm having trouble understanding CSS though , it's a little tough

Megavideo Movies said...
12.07.2010 @ 05:32am

Thnks for this usefull information. Great SHare!

Website Desgin said...
12.07.2010 @ 04:07am

hi all, how are you :)
good site and useful...

chat said...
12.07.2010 @ 03:31am

CSS is a very complicated script, but over time I began to understand it. Bog this really helped me learn CSS. thanks to his knowledge.

Domo kun said...
11.07.2010 @ 02:41pm

Thanks! your post helped me

Sports News said...
11.07.2010 @ 12:58am

CSS is a very complicated script, but over time I began to understand it. Bog this really helped me learn CSS. thanks to his knowledge.

Bijuterii argint said...
10.07.2010 @ 08:34am

Perfect solution for the site I am currently building and IE6 is just not playing nice with regards to multiple selectors.

Jango said...
10.07.2010 @ 05:44am

Very informative post.
Thanks.

djzoonM said...
10.07.2010 @ 04:10am

Great artical thanks alot!

Adam Peter said...
09.07.2010 @ 04:27pm

Thats great tips, thanks!
קורס ברמנים

Peter Mark said...
09.07.2010 @ 03:48pm

Thats Really Rocks! Thanks for all this info.
rental software
Adjunct Faculty Jobs
קורס ברמנים

Brood bakken said...
09.07.2010 @ 07:06am

Gonna try this on my own homepage, thanks for this.

Roman said...
09.07.2010 @ 04:05am

Oh my goodness!
That's really CSS 3 compatible and affordable for ie 5.5!

SEO&SMO; said...
09.07.2010 @ 12:18am

This seems a little complicated.Thank you anyway!You've helped me a lot!

Free Apple Gifts said...
08.07.2010 @ 04:15pm

Great read! I like reading your posts, keep it up! :)

HTC Downloads said...
07.07.2010 @ 12:18pm

Great artical thanks alot!

DIGITURK said...
07.07.2010 @ 07:44am

Excellent article, explained very clearly. Congratulations on the quality of your website. Greetings from Turkey.

toplist said...
07.07.2010 @ 07:43am

I've been waiting on this one for a while, this is good news.

guzelsozler said...
07.07.2010 @ 07:42am

Thank You for Your help. Much admin

Kapuska said...
07.07.2010 @ 07:41am

Apparently this IE6 hack no longer works...either that or it just didn't for me.

Aussie Pythons said...
07.07.2010 @ 04:42am

This is absolutely perfect. Thank you so much.

prom dresses said...
07.07.2010 @ 03:59am

I think my brain just exploded when reading this post. Awesome work.

Granite Tile said...
07.07.2010 @ 02:23am

Great information!
I really like it!. thanks

Dan said...
06.07.2010 @ 09:08pm

Great information, thanks for the post.

emii said...
06.07.2010 @ 01:57pm

thanks, great information.

Romika said...
06.07.2010 @ 01:14pm

Thanks for nice ..topics

Darts said...
06.07.2010 @ 12:11pm

Nice post, its so frustrating how IE doesn't follow the same standardization as other browsers.

Akosin said...
06.07.2010 @ 11:27am

İnternet Aleminin Blogu

Tatil said...
06.07.2010 @ 10:10am

www.tatilhaftasi.com

ricky said...
06.07.2010 @ 09:47am

thanks, nice tutorial..

kanisti said...
06.07.2010 @ 06:58am

FREE GAMES
FREE VİDEOS
FREE MP3 AND TV-RADİO
http://tvmatik.org

Helium said...
06.07.2010 @ 02:48am

Getting bored of IE 6 now to be honest, i know we still have to put up with it, but even clients these days dont seem to care as much.

Hot Air Balloon said...
05.07.2010 @ 10:22pm

damn i hate IE6, I've almost given up completely on supporting it.

Thanks for this tip.

Kollagen Intensiv said...
05.07.2010 @ 07:38pm

Thanks mate for the code. I really hate ie 6 and how it renders things. I'm really glad that less and less people are using it

Accountant Careers said...
05.07.2010 @ 06:57pm

Good coding, managed to fix the problem right up!

Tasarım said...
05.07.2010 @ 04:04pm

Fuck IE6!!!

aflam online said...
05.07.2010 @ 08:19am

there are IE8 beta and has many updates

Meda said...
05.07.2010 @ 08:04am

nice trick thanks for sharing

Robert said...
05.07.2010 @ 07:48am

I wonder that so many people are still using a browser that always needs some special treatment.

acid reflux cure">Peter Mark said...
05.07.2010 @ 05:59am

looks easy when I read your post first ....
trick that is very helpful.
acid reflux cure

lunettes said...
05.07.2010 @ 04:06am

Very nice article thanks

chattr said...
05.07.2010 @ 02:30am

thanks you sorry

Indonesia Furniture Reclaimed Teak said...
04.07.2010 @ 09:18pm

I'm tired of css coding in accordance with ie. However, I find this post useful. Many thanks

Şubeler said...
04.07.2010 @ 06:26pm

thanks for the suggestion. I like your post.

esenyurt said...
04.07.2010 @ 05:14pm

nice tip, I love your post

Web Design said...
04.07.2010 @ 03:31pm

Nice tutorial, your clearfix working well. Thanks! I'll test on all browsers soon.

Bismil said...
04.07.2010 @ 01:29pm

Thankk you.

Dana said...
04.07.2010 @ 11:46am

Great find, shame ie6 is dumb though.

Saad said...
04.07.2010 @ 11:17am

wow. nice try.

Jimmy said...
04.07.2010 @ 11:16am

that's my idea for the summer

free blackberry tour said...
04.07.2010 @ 11:15am

very nice trick. thx a bunch

Simona said...
04.07.2010 @ 11:15am

i love to study the CSS one Day

Justin said...
04.07.2010 @ 11:12am

i always prefer CSS than the old fashions table.

Kelty Child carrier said...
04.07.2010 @ 11:10am

Good stuff . do you recommend any good CSS tools free to code some code. i am using Toplite but it is not at the top.

Devizapiac said...
04.07.2010 @ 10:57am

Really cool trick!!!

komik videolar said...
04.07.2010 @ 08:08am

nice code and thanks.

sohbet said...
04.07.2010 @ 06:47am

thank you very mouch..

Alec Cole said...
04.07.2010 @ 06:40am

Apparently this IE6 hack no longer works...either that or it just didn't for me.

rentacar said...
04.07.2010 @ 05:59am

thnkass

health child said...
04.07.2010 @ 05:41am

thanks good post

Recep Fatih said...
04.07.2010 @ 05:35am

thank admin :)

Diziizle said...
04.07.2010 @ 05:34am

cool news thx

dc said...
04.07.2010 @ 05:28am

great! thanks.

seosa said...
04.07.2010 @ 05:26am

thanks, this a great trick

arkadaş arıyorum said...
04.07.2010 @ 05:26am

thanks admin bro

japon porno izle said...
04.07.2010 @ 05:24am

That's is really cool!

Kartanesi said...
04.07.2010 @ 05:22am

yes thanks your information god luck!!

blogosi said...
04.07.2010 @ 05:11am

Hello
Your blog is very good. I'm from Turkey. Thanks for this article :)

Kozan City said...
04.07.2010 @ 03:24am

Thanks! I think it will be a great help for people looking for this code.

Isagenix said...
03.07.2010 @ 05:20am

Awesome tutorial.
Keep sharing, Thank's

Watch Fifa Worldcup 2010 Online said...
02.07.2010 @ 11:04am

Everything is very open and very clear explanation of issues. It contains truly information. Your website is very useful. Thanks for sharing. Looking forward to more!

Internet Marketing Online said...
02.07.2010 @ 01:38am

nice share information dude. tnks

teeth whitening worcester ma said...
01.07.2010 @ 02:25pm

very very nice stuff!

Spacious Storage said...
01.07.2010 @ 10:36am

Very helpful detailed hack.

games kids said...
01.07.2010 @ 10:02am

woot, like it

mario games said...
01.07.2010 @ 10:00am

nice tip, I love your post

phone number reverse lookup said...
01.07.2010 @ 09:56am

i would like to recommend your blog post for my friends because it has a great potential and great content.

internet tv software said...
01.07.2010 @ 09:52am

Hey very nice blog!! Buddy... Amazing... I will bookmark your blog for sure and take the feeds also...

Pramila said...
01.07.2010 @ 05:23am

Great trick ...and good as well

Thanks~ cheerrs~

soccer shirt said...
01.07.2010 @ 04:53am

thx for great trick.

DennisXHopper said...
01.07.2010 @ 02:59am

nice trick, thanks for sharing

Notebook Driver said...
30.06.2010 @ 06:08pm

Apparently this IE6 hack no longer works...either that or it just didn't for me.

Laptop Drivers said...
30.06.2010 @ 06:05pm

the idclass must be selec for great result..

PDF Search said...
30.06.2010 @ 10:43am

Thank you for this css tutorial. Is indeed very helpful.

turboleecher said...
30.06.2010 @ 07:47am

yes thanks your information god luck!!

Gadget News said...
30.06.2010 @ 06:44am

Get the latest gadget news and review

Sarah Graham Fitness said...
30.06.2010 @ 01:44am

Welcome to Sarah Graham Fitness Club,San Jose premier choice for personal fitness training! We offer a wide variety of personal training programs including one-on-one training,group training,Home Training,http://personalfitnesssanjose.com

Stephen said...
29.06.2010 @ 06:33pm

Quality code. Thank you for the information.

Personalised Gifts said...
29.06.2010 @ 02:17pm

Great little bit of information. IE is always so buggy, no matter version.

Bruce said...
29.06.2010 @ 10:54am

Nice trick for those of us still hanging onto the old ie6 version.

isolation acoustique said...
29.06.2010 @ 08:27am

nice trick, thanks for sharing

mustafa said...
29.06.2010 @ 03:39am

thank you so much :D :D :D

cashback coupons deals discount codes said...
29.06.2010 @ 12:43am

Get a promo code for a discount or free shipping for any online retailer. Just search the store url at: http://www.EmployeePerk.net

It will bring up all valid / current promo codes and discounts for the store. This is a free, quick and easy way to save some money on all your online purchases

Playdough Recipe said...
28.06.2010 @ 10:12pm

Awesome! Thanks for the tip!

Hollanda Sohbet said...
28.06.2010 @ 06:26pm

Turkish Chat Rooms ..

Turkchat said...
28.06.2010 @ 06:25pm

Turkish Chat Rooms ...

Advice on Getting out of debt said...
28.06.2010 @ 06:16pm

Rock and Roll is always an expensive business, always has been and always will be and the danger of most promoters going into debt nowadays is tremendous, Getting the right advice on getting out of debt is important and having had that then taking the right steps for getting out of debt is more important than most people realise.

projector screens said...
28.06.2010 @ 11:24am

the idclass must be selec for great result..

projector screens said...
28.06.2010 @ 11:10am

Simple and great information..

r1soft said...
28.06.2010 @ 11:03am

IE6 is expired. why people still use it?

Talk to gadgets said...
28.06.2010 @ 10:30am

Amazingly Writen code :) Thanks

Live Football streaming said...
28.06.2010 @ 10:26am

Nice Coding :) Works Perfectly

Khaled riyadh said...
28.06.2010 @ 10:26am

Well, I'd Say Amazingly Written Code. Was very easy to Understand what the writer meant :)

Mark Jones said...
28.06.2010 @ 04:52am

Nice blog post. This post is very helpful for the professional designers like me.

zayıflama lida fx15 ve biber hapı zlfvbh said...
27.06.2010 @ 02:47pm

thanks your information

Ricky @iphone apps said...
27.06.2010 @ 11:13am

Well ie6 is always gives a trouble to the web designer like me. Thank you for the article.

Igri said...
27.06.2010 @ 06:46am

thanks your information god luck!!

Stuff Freebies said...
27.06.2010 @ 04:12am

Nice to see this

Baby and Parent said...
27.06.2010 @ 01:26am

Great information!
I really like it!. thanks

Trend Fashion Blog said...
27.06.2010 @ 12:37am

Hi Jenna,
Thanks for the tip!

bathroom vanities design said...
26.06.2010 @ 09:45pm

cool news

bathroom vanities design said...
26.06.2010 @ 09:40pm

thanks for sharing guys..

jasdeep said...
26.06.2010 @ 11:23am

Thats really cool site for me

Suhaana said...
26.06.2010 @ 11:18am

Thats rockS thanks

Dermasis Cream said...
26.06.2010 @ 04:11am

Cheers for the tutorial

general said...
26.06.2010 @ 01:26am

this site has been spammed to death

general said...
26.06.2010 @ 01:25am

this site has been spammed to death

health said...
26.06.2010 @ 01:24am

yes, i agree an nice trick which has been available online for quiet some time

vinsarea said...
26.06.2010 @ 01:22am

neat little code change, are you a coder?
i am looking to hire some coders

metasearch said...
25.06.2010 @ 11:45pm

This is a really good article. I was looking for it. And does it work for newer versions of IE too ?

Jack said...
25.06.2010 @ 07:11pm

Thank you for explaining this, I was pulling my hear when dealing with this issue and trying to implement a flexible 3 column layout!

IE6 would just ignore certain rules for the container padding. I've solved it now by just using separate classes instead of #id.class

cleveland laucher irons said...
25.06.2010 @ 11:09am

Thanks! I think it will be a great help for people looking for this code.

Gucci Shop said...
24.06.2010 @ 02:30am

Your aritcle is very helpful for me,good job!

braculus said...
23.06.2010 @ 07:21am

thanks a ton for the tip.. . I`m rebuilding customer`s site from tables to css and your post saved me from crazyness

Signs Austin said...
23.06.2010 @ 06:15am

People should stop looking for hacks and tricks and learn to write IE6 compatible code from the start.

sexy lingerie said...
22.06.2010 @ 09:19pm

I like the post, and I agree somewhat with, To be very truthful.

Woinse Directory said...
19.06.2010 @ 08:17am

yes thanks your information god luck!!

Natural Home Remedies said...
19.06.2010 @ 08:16am

Home Remedies and Natural Cures for strong Immunity and Health

HGH said...
18.06.2010 @ 01:13am

Your site looks so pretty and this code will be pretty useful. Thanks.

registry cleaner said...
17.06.2010 @ 11:41pm

great psot thank you very much

seomarketing said...
16.06.2010 @ 07:51am

IE 6 is out in Germany.

Laptop Repair said...
15.06.2010 @ 04:53am

Well it has been a issue all times for web developers to take care of IE 6 issues. This is a nice little trick that can do for all the developers

industry predictions said...
15.06.2010 @ 04:01am

IE6 is a bad browser. I use the id for IE7 or 8

Cormac said...
14.06.2010 @ 01:46pm

Thanks for this helpful information. IE6 has been conquered again!

Feuerwehr Spiele said...
10.06.2010 @ 06:39am

I found your blog from google and read a few of your other posts. They are awesome and helpfull. Keep at good work :)

NacedCanal said...
08.06.2010 @ 06:39pm

Nice:))

womens waterproof jacket said...
08.06.2010 @ 01:18pm


I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me.

Hillarys blinds said...
07.06.2010 @ 11:39pm

Yeah, I am trying to implement few new things in IE6 since one of the my own site is facing problems during problems. Anyways, I will try to implement your coding.

Kumpulan Tutorial Ngeblog said...
07.06.2010 @ 07:45pm

good old ie6. i seem to spend the same amount of time getting my css to work in ie6 as i do to design the whole site. how annoying but thanks for the tip!

Nice trick man, will be doing these on a few of my sites.

SEO UK said...
07.06.2010 @ 12:53pm

This is one of the many reasons why people should use chrome or firefox.

burberry scarf said...
03.06.2010 @ 10:54am

shopping online for burberry scarf, wow, this is so wonderful ! all products 50% off,if you want to be a beautiful scarf please come to my burberry factory shop - fashionbagsoutlets.com

Yemek Tarifleri said...
03.06.2010 @ 10:40am

yes thanks your information god luck!!

Cebu Real Estate said...
01.06.2010 @ 08:23am

I just wonder if this will work on other IE versions like I7 and I8.

Video humour said...
31.05.2010 @ 08:27am

Excellent post. Exactly what I was looking for. Thank you so much.

Feuershow said...
29.05.2010 @ 01:56pm

Money Thanks for this post. Works great for me. I`m rebuilding customer`s site from tables to css and your post saved me from crazyness

bet365 said...
28.05.2010 @ 09:11am

I did not know that it was possible to get this working with XHTML and CSS. Thank you so much for sharing this.

Hotels in Manali said...
27.05.2010 @ 02:29pm

people still use IE 6.... thanks for this tip. i still found IE6 user visiting my site.

appliance repair said...
24.05.2010 @ 11:41pm

I found your blog from yahoo and read a few of your other posts. They are awesome and helpfull. Keep at good work :)

appliance repair

Yemektarifleri said...
24.05.2010 @ 03:39pm

Very googd post,thanx admin

gAmes said...
22.05.2010 @ 05:15pm

thank you. fantastic share :)

markes said...
22.05.2010 @ 05:13pm

it is cool. thank you :)

quebec incorporation said...
21.05.2010 @ 06:04pm

The website didnt load on the first try, strange...

Andy Smith said...
21.05.2010 @ 01:57am


It is a mistake for a sculptor or a painter to speak or write very often about his job. It releases tension needed for his work.


belstaff leather jackets

herotino said...
18.05.2010 @ 04:29pm

The information you provide is really helpful, thank you, I follow you

Fanny Mae said...
17.05.2010 @ 10:43am

The first step in the acquisition of wisdom is silence, the second listening, the third memory, the fourth practice, the fifth teaching others.



la martina shirt

Cameron said...
15.05.2010 @ 09:26am

Im finding the need to make a site run in ie6 less and less important, nowadays, certainly from my stats its seems hardly worth while.

fit4flirt said...
14.05.2010 @ 10:44am

hey this is great work on The #id.class selector in IE6... BytesizeCSS Rocks.... thanks for sharing :)

sudoku strategies said...
12.05.2010 @ 05:18pm

there seems to be alot of css tricks lately, interesting and yes thanks for the share

Net Age | Web Design said...
12.05.2010 @ 04:02am

Yup IE6 just doesn't want to go away, and tips like these are very often needed in the search for fixes to make a website design IE6 compliant.

Thank goodness for the internet and Google delivering what I need to know about IE6 when I need to know it!

convert mp4 said...
10.05.2010 @ 04:31am

I have no idea whether it is ok with ie 8.

liposuction for men said...
09.05.2010 @ 06:24pm

Will this apply also to the new IE 7?

Yuki said...
07.05.2010 @ 10:51pm

Nice article, it is very useful for me, thanks.

Wanderlei Silva said...
05.05.2010 @ 11:29pm

When I upgraded my site everything regarding IE 6 went to hell, it was a nightmare. Why do so many people still use it?

Chartered Quantity Surveyors Kent said...
05.05.2010 @ 06:48pm

I don't actually rogram my sites to tkae into account IE6 but maybe I should start doing so - looking at the comments people are still using it so thanks for the advice and this hack.

loan interest formula said...
05.05.2010 @ 02:40am

I am impressive by the description on this page. I think you had a great knowledge on "The #id.class selector in IE6". I have been using IE#6 for a long time and really I like it.
loan interest formula

construction games said...
05.05.2010 @ 02:37am

uhm, as you described and gave example in this post, I think in order to get IE6 to pay attention to the other #id.class rules, we must add another element inside your #feedback element that wraps it's containing markup and then tweak the CSS slightly. Bravo you as such creative ideas!

William said...
04.05.2010 @ 04:56am

Well it is indeed quiet useful trick as there are still many users who are using IE 6 & applying CSS correctly in it is quiet difficult. Thanks for this useful trick.
Joomla Website Development

Rich said...
28.04.2010 @ 04:39pm

The id class selector is such a big asset for ie6 users although I am not really comfortable using it and probably I'd still prefer the firefox for my browser. Anyways, you've made a great post about it. Thanks.

ysn said...
28.04.2010 @ 10:49am

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.

travesti said...
28.04.2010 @ 10:27am

cok teşeşkürler güzel paylaşım

click here said...
28.04.2010 @ 04:14am

This was the very first American Dad episode. In the pilot, Steve runs for class president against the most popular girl in school, Lisa Silver. Stan helps Steve by using his CIA skills, and Steve even manages to win. But the job goes to his head, and he becomes mad with power. Now Stan must put an end to it. Meanwhile, Francine cuts Roger off from his snackage intake, and Hayley is too busy to go out with her boyfriend. So Roger agree's to do Hayley's homework...in trade for snacks. Things go well for a while, until Roger falls asleep instead of writing one of Hayley's papers. In a subplot, Klaus tries desperatly to win Francine over.

Marketing Portsmouth said...
26.04.2010 @ 08:43am

I have just used this on one of my sites and it works a treat - excellent tip as analytics still shows I have IE6 viewers!

cash4gold review said...
24.04.2010 @ 08:09pm

Awesome trick, never came to mind.

hermes birkin bag said...
24.04.2010 @ 11:00am

Nice post, thank you.

backupxbox360games said...
22.04.2010 @ 08:23am

Great Post! I personally really like your content. This is a great website. I will make sure that I stop back again!.

Larry Lyautey said...
21.04.2010 @ 09:45am

Gud post . . . Looking for designs n good logo

Logo Design Blog

Companylogos

toronoto said...
20.04.2010 @ 05:30am

Thanks for your information. Interesting to know more about that. So, I am waiting for your next article:)toronoto web design |toronoto swingers

Julian said...
19.04.2010 @ 03:08am

Great stuff. XHTML and CSS are flexible and you can do possible things with it.

Thank you,

B. S. said...
18.04.2010 @ 04:12pm

thanks for your post..

Project Management Services said...
18.04.2010 @ 10:48am

very useful IE hack / trick and still useful as i know people who still use IE6!

sohbet said...
17.04.2010 @ 07:57am

thanks brother.nice sha.

Web Design Chattanooga said...
17.04.2010 @ 02:00am

Wew, how bogus is all that extra code. IE 6 is dieing a slow death. I'll be glad when it off the face of this planet.

Marco said...
16.04.2010 @ 06:18pm

Good Idea. I'll try it, and ohh for me IE is still the best web-browser, although they say fiirefox is safer to use.. IE loads faster.. makes me happier

murat said...
16.04.2010 @ 07:50am

perfect coder :)

Muebles Dormitorio said...
16.04.2010 @ 02:43am

Nice trick. IE 6……when will it stop coming back to haunt us!

hostmagz said...
13.04.2010 @ 09:48pm

thanks a lot for your info

hostmagz said...
13.04.2010 @ 09:47pm

thanks for good articles

erotik film izle said...
13.04.2010 @ 03:41am

very good job admin :)

travesti said...
13.04.2010 @ 03:41am

thanks for share trick

wall art decor said...
13.04.2010 @ 02:30am

Thanks a lot for providing such a nice information with us.Very informative and useful article.Thanks a lot for posting

echte-erotikkontakte.net said...
13.04.2010 @ 02:20am

Very nice Trick . Ty for that

milton keynes web design said...
12.04.2010 @ 10:34am

wow, thats pretty cool

Swabi said...
12.04.2010 @ 07:41am

Wawooo, thts cool.. tnx

wrist weights said...
10.04.2010 @ 08:24am

I wonder if it would show in Firefox though.

News Shopping Center said...
10.04.2010 @ 04:01am

really good article. nice share.

Cheap atvs said...
09.04.2010 @ 01:59am

I like to read your post because always i found something new & helpful information from your blog. You have done great job & i like this new & simple trick.

Alps Hotels said...
06.04.2010 @ 05:59pm

Such a nice trick! Never thought of wrapping out div elements. CSS looks simple, but it has thousands tiny trick

Bensinkort said...
05.04.2010 @ 06:51pm

"worlds biggest IT company able to create a browser"

UNable, off course. Sorry.

Bensinkort said...
05.04.2010 @ 06:50pm

Joohoo, another error in IE. I`ve said it before and I`ll say it again: why, Oh why, are the worlds biggest IT company able to create a browser that actually works like it should? Do you know it THIS is fixed in the newer versions?

Kitchen Design MA said...
05.04.2010 @ 02:23pm

Great information as usual, I look forward to more.

Flaw said...
04.04.2010 @ 09:59pm

This is really good article. This help us a lot

Home and real estate said...
04.04.2010 @ 07:22pm

thanks for graet post

Credit Finance said...
03.04.2010 @ 10:46pm

nice tips, thanks for share

Herdion C Saputro said...
02.04.2010 @ 08:26pm

Trying to use a class to replace a background-image on a div. The method above doesn't seem to work on what I am trying to accomplish.

chicago limousine service said...
01.04.2010 @ 06:36am

Maybe this is one of the good things you can do in IE6.

gotboats forsale said...
01.04.2010 @ 12:02am

Very neat. especially, it's true in the boating industry. i run a pwc for sale site and use this service.
It makes you wonder how does microsoft make a rendering and layout engine so buggy that simply adding a child element fix the problem.

web design & development said...
31.03.2010 @ 04:23am

good old ie6. i seem to spend the same amount of time getting my css to work in ie6 as i do to design the whole site. how annoying but thanks for the tip!

MarkoB said...
30.03.2010 @ 09:01pm

This is really good article. This help us a lot

Design Build MA said...
30.03.2010 @ 01:21pm

Thanks for the great info!

san diego screen printer said...
29.03.2010 @ 07:48pm

Great stuff. XHTML and CSS are flexible and you can do possible things with it.

Thank you,
san diego screen printer

ENews Line said...
29.03.2010 @ 07:59am

Thank you, I have read your article, its really very - very informative

Myrtle Beach apartments said...
28.03.2010 @ 08:55pm

great post - I was looking for a fix for this

Consult said...
26.03.2010 @ 01:17pm

the day IE6 dies, nerds of the world will rejoice

Softwre downloads said...
24.03.2010 @ 03:06am

The search engines helped me find your site. Glad i found it because i have learned a lot here. Thanks for all your work!

staffordshire terrier said...
22.03.2010 @ 05:28am

I'd never tried out these ideas and I might try it. I hope it will give me more ideas which one works better. Thank u.

Pokerstars Blog said...
20.03.2010 @ 03:45pm

Thansk for the article.

travesti said...
19.03.2010 @ 10:55am

some pages error. Litte trick that is css

Internet Hosting said...
18.03.2010 @ 07:43am

Trying to use a class to replace a background-image on a div. The method above doesn't seem to work on what I am trying to accomplish.

IT said...
18.03.2010 @ 03:04am

Thank you for the information, I didn't know such method before. I've been always written ID's and classes properties separately, I mean #feedback { properties }, .error { properties } and always had the same result.

silah oyunları said...
16.03.2010 @ 12:54pm

super thanksss

London Paris Train said...
15.03.2010 @ 01:47am

This is good, Great Post

Eurostar Prices said...
15.03.2010 @ 01:46am

This is really good article. This help us a lot

online radio said...
14.03.2010 @ 12:31pm

I successfully used css on most of my websites, css that has always been recognized but all the known browsers. I think css is the only and best way to deal with your website's stye.

Respect!

Piluz said...
14.03.2010 @ 01:27am

Nice post and useful for me
Thanks

Phil said...
14.03.2010 @ 01:23am

This is a great post. Thanks a lot. This was really clear and easy to take advantage of

Hotels Ladakh said...
13.03.2010 @ 01:20am

Damn IE 6..... thanks for sharing and helping others
:)

Travesti Yeliz said...
12.03.2010 @ 01:29pm

Great post..perfect blog..Your research is really good...

steven@quotewerks said...
11.03.2010 @ 01:36pm

Where did you get those trick? You're brilliant. Is it okay is I emulate the same thing when I encountered this kind of scenario? thanks.

weight loss menus said...
10.03.2010 @ 03:18pm

You're genius! I also did the same thing when using IE6..However, I prefer using firefox rather than IE.
Thank you,
weight loss menus

Tech Guy said...
02.03.2010 @ 10:08pm

I wish IE6 would just go away once and for good

Handbags said...
26.02.2010 @ 02:10pm

Some blog sites cannot be shown correctly with IE. Some times we see the side columns not shown.

Jim Jones said...
25.02.2010 @ 01:53pm

Wow - what a tip!

Andrew said...
23.02.2010 @ 05:10pm

Thnx,Information is very usefull , no to IE

white mini fridge said...
21.02.2010 @ 09:58pm

Damn IE6, I'm glad it'll be gone soon!

Shifting Calories said...
21.02.2010 @ 03:55pm

Yet another reason I refuse to use IE...but great tip!

Natural Body Detox said...
21.02.2010 @ 03:42pm

Better bookmark this, I'm sure it will come in handy down the road...Thanks!

Wedding Speech Jokes said...
21.02.2010 @ 03:31pm

Let's face it, IE6 is never going to die...keep hacking away!

CopyNProfit 3.0 Sneak Preview said...
21.02.2010 @ 03:25pm

Very helpful! You'd be surprised how many non-profits and universities are still using IE6, I spent hours upon hours reworking CSS to be compatible with IE6.

UK Boot Camp said...
21.02.2010 @ 07:17am

Nice hack for IE6 - Personally will be pleased to see the back of IE6 !!!

Germscheid said...
17.02.2010 @ 03:01pm

it's cool

Energy said...
16.02.2010 @ 06:00am

I'm trying to use a class to replace a background-image on a div. The method above doesn't seem to work on what I am trying to accomplish.

So it works to replace background-colors, but not background-images

Directv said...
15.02.2010 @ 01:12pm

IE has updated numerous times since this post.

ufo led said...
14.02.2010 @ 10:39am

Great article on IE6 compatibility. This works.

jobs for 16 year olds said...
10.02.2010 @ 08:18pm


it does validate except for the server elements, css is fine.

my doc type is



=/ even the simple example i created won't work properly.. im looking for a fix; i know its a bug with IE.

Ash said...
09.02.2010 @ 09:37pm

Works ! Thanks a million !!

Tjene penger said...
08.02.2010 @ 05:12am

Just love the CSS stylesheets :) Thinking back to the days when Frames where the way to go... lol

vet said...
05.02.2010 @ 04:05am

It's really appreciable that you have written very good article for us.

peninggi badan said...
04.02.2010 @ 08:54am

looks easy when I read your post first ....
trick that is very helpful ....
thanks .....

TagByTag Web Design Tutorials said...
02.02.2010 @ 04:16am

Thanks a lot for explaining this, I was pulling my hear when trying to implement a flexible 1-3 column holy grail layout!

IE6 would just ignore certain rules for the container padding. I've solved it now by just using separate classes instead of #id.class

Ca Foreclosures said...
01.02.2010 @ 10:39pm

great blog, good article, fine writing, thanks for sahring this.

d7aym said...
31.01.2010 @ 09:41am

thanks gooood

http://www.c8o8.com/vb

Andrew Keir said...
31.01.2010 @ 03:44am

We need less support for IE6 so people upgrade and we can forget the blasted thing.

يوتيوب said...
27.01.2010 @ 06:17pm

i love this great blog

Car said...
26.01.2010 @ 08:32am

thanks for this, could you point me in the right direction to sort my

    out in IE6? i get gaps between the
  • elements on one of my sites?

midoelgamed said...
24.01.2010 @ 05:52pm

Sorry but adding extra mark-up is just plain wrong.
People should stop looking for hacks and tricks and learn to write IE6 compatible code from the start. This should only help if you are editing someone else's code and cant change the css!

Gordon Wandtattoo said...
22.01.2010 @ 05:49pm

Nice Informations, thanks. I will see how usefull they can be for me and test it on one of my websites. Best regards Gorden Wandtattoo

Web templates said...
22.01.2010 @ 02:53pm

Thank you for your post! Even though IE6 will not exist anymore but I think it will be useful for us. THanks

wedding vendor quotes said...
16.01.2010 @ 07:30am

I find this awesome. Thanks,cheers.

sudoku tips and tricks said...
15.01.2010 @ 03:59am

well its not sudoku tips and tricks but I appreciate the work as well.

Pink Office Chair said...
11.01.2010 @ 11:39pm

Great trick....I'm always interested in seeing what's new on you site.

iphone fix said...
04.01.2010 @ 11:11pm


However, the additional markup to the page ... Sometimes people have child elements for semantics but do not know they can target those children style in IE6.

For example, the markup in the past, I used a similar style to the next for the anchors as buttons:

Button

... This is entirely semantic, and if someone wants to be neutral, positive and negative buttons, they would probably have added classes btn-positive/btn-negative anchor and style to share. But they could only target the strong brands and use different class voters instead.

titan betting said...
31.12.2009 @ 03:12am

i love this great blog

bingo online italiano said...
31.12.2009 @ 03:09am

That is a great little trick.

titan bet aams said...
31.12.2009 @ 03:08am

very nice web

gratta e vinci gratis said...
31.12.2009 @ 03:07am

That is a great little trick.

منتديات ساحل الجعافره said...
21.12.2009 @ 01:01am

Thanks dear

Knowledge Network said...
19.12.2009 @ 03:45pm

This is a great trick. IE6 is really a pain to code for. Doing a number of tricks using CSS like the one above have helped making designing for different browsers slightly easier, but IE6 is still the worst.

Jenna said...
16.12.2009 @ 03:38pm

Si, you're living on another planet if you really believe that it is possible to create some of the amazing designs we see today without adding extra markup to achieve it. Sometimes extra markup is necessary and it can still be semantic (my example above probably wasn't the best).

However, extra markup aside... sometimes people already have child elements for semantic purposes but don't realise that they can target those children to style in IE6.

For example, in the past I've used markup similar to the following to style anchors like buttons:

<a href="#" class="btn"><strong>Button</strong></a>

... this is completely semantic and if someone wanted neutral, positive and negative buttons they'd probably have added btn-positive/btn-negative classes to the anchor and styled them separately. But, they could just target the strong tags and use multiple class selectors instead.

Si said...
16.12.2009 @ 08:14am

Sorry but adding extra mark-up is just plain wrong.
People should stop looking for hacks and tricks and learn to write IE6 compatible code from the start. This should only help if you are editing someone else's code and cant change the css!

Benjamin Reid said...
16.12.2009 @ 06:56am

Well #feedback.error won't work. Just do the id and class on different lines.

#feedback { }
.error { }

Then write the usual markup. Work for me.

myWandtattoo said...
06.12.2009 @ 01:44pm

Many thanks, elegant tweak!

Selbstklebende Folie said...
05.12.2009 @ 11:58am

I was looking for information like this. Best regards Michael

Learn-er said...
30.11.2009 @ 08:58pm

Simple work around for ie6.

Raisins said...
24.11.2009 @ 06:17am

Firefox or chrome are the best. I think the information presented will be useful to many people a lot.

eSky - Premium Web Directory said...
22.11.2009 @ 07:56pm

Great trick!

Jackie said...
05.11.2009 @ 01:15pm

Pretty cool trick / idea.

CSS Tutoring said...
29.10.2009 @ 08:10pm

Nice CSS tricks that I doubt I will be needing anytime soon. I usually prefer creating CSS styles just for IE6

seo of india said...
29.10.2009 @ 07:25am

I am agree with you. Nice post.

Terry said...
27.10.2009 @ 09:27am

Awesome tip!

copper clad aluminium wire said...
19.10.2009 @ 06:07am

I m a starter in this field . I just started to bulild website, blog . It is a little complicated for my simple head . But really enlighting

skf bearings said...
19.10.2009 @ 04:33am

Thank you for your share,it is a useful article

Sms Falas said...
17.10.2009 @ 03:48am

Thanks for nice CSS tips . I am big fan of CSS and its very simple and flexible .

vista codec package said...
16.10.2009 @ 07:54am

very useful post. thanks for everything!

Golden triangle tours said...
09.10.2009 @ 05:03am

Nice blog, that can make you happy and can open new way of earning.

Muscle Mass said...
08.10.2009 @ 11:28pm

I never knew you could do that. Great little trick.

Magic Tricks Revealed said...
08.10.2009 @ 11:28pm

Thanks for the CSS info.

Board Exam said...
06.10.2009 @ 09:56pm

This trick is so great.

Career Target said...
06.10.2009 @ 09:55pm

This great trick works. Thanks for posting.

Poptropica said...
05.10.2009 @ 12:44am

Great to see that at least some CSS tricks work in IE6.

Julian said...
04.10.2009 @ 02:18pm

Thanks for this post. Works great for me

Drug Treatment Centers said...
04.10.2009 @ 04:06am

Awesome blog your feedback and info provided are really appreciable.
thanks!

Tyler Brownell said...
02.10.2009 @ 08:14am

I thought this was impossible. Thank you so much!

Darba piedāvājumi said...
30.09.2009 @ 08:10am

Still so many people use IE6.

But thanks for tutorial I will give it a try.

Maracas said...
28.09.2009 @ 03:29pm

Isn't this another reason why we should all continue the glorious revolution against IE6?

air purifier ratings said...
24.09.2009 @ 04:12am

Thanks for this info, i will put to use right now

Phoenix SEO said...
22.09.2009 @ 03:09pm

Awesome code, I will save this in my programming DB of things to save for a rainy day - because I know I will need it

sugar cookies said...
22.09.2009 @ 02:02pm

hi,
Thanks for nice CSS tips . I am big fan of CSS and its very simple and flexible .

Nicolas said...
21.09.2009 @ 04:08am

Great one! Many people who are using IE6 will find this one very useful. I'd better try this one.

arab-ia said...
15.09.2009 @ 10:29pm

That is a great little trick.

Meg said...
11.09.2009 @ 07:15pm

I'll look into it. Thanks for sharing.

online furniture store said...
10.09.2009 @ 02:19pm

More proof that everyone should be using firefox or chrome. god IE is such a pile of junk

waLlpaPer said...
10.09.2009 @ 05:45am

it is a shame that IE6 is still on most used browsers :(
That was a nice article thank you

Rusli Zainal sang Visioner said...
07.09.2009 @ 02:16am

wow...that sure is a lot of work to do just to get it to work in crappy IE6, huh? looking forward to the day when all anyone uses is Chrome, Safari and Firefox!!

Poptropica said...
03.09.2009 @ 03:14pm

thanks for your tutorial..!!!

raudensah said...
03.09.2009 @ 02:51pm

yes thanks your information god luck!!

Austin deck said...
03.09.2009 @ 01:45pm

Excellent presentation. Austin deck wishes to have more articles like this

edu links said...
02.09.2009 @ 01:32pm

wow...that sure is a lot of work to do just to get it to work in crappy IE6, huh? looking forward to the day when all anyone uses is Chrome, Safari and Firefox!!

Garry said...
01.09.2009 @ 06:21am

thanks for the suggestion. I like your post.

Phoenix Furniture said...
29.08.2009 @ 04:36pm

Nice trick man, will be doing these on a few of my sites.

Rochester hvac said...
28.08.2009 @ 08:55am

We like this information post yes it is much needed for people who use IE6.

Teresa said...
27.08.2009 @ 02:25pm

Thanks for this tip. I`m rebuilding customer`s site from tables to css and your post saved me from crazyness

jon said...
25.08.2009 @ 11:29pm

need to try this

Multiply Themes said...
25.08.2009 @ 10:22pm

This is really cool tweak, need to try this.

Joe Wolfe said...
13.08.2009 @ 11:16am

Let me reiterate:

You use the code above to replace a background-color on a div.

I'm trying to use a class to replace a background-image on a div. The method above doesn't seem to work on what I am trying to accomplish.

So it works to replace background-colors, but not background-images

Joe Wolfe said...
13.08.2009 @ 11:10am

Apparently this IE6 hack no longer works...either that or it just didn't for me.

orip said...
04.02.2009 @ 09:25am

Thanks, elegant tweak!

JBagley said...
29.01.2009 @ 06:48am

Perfect solution for the site I am currently building and IE6 is just not playing nice with regards to multiple selectors.

Sophia said...
05.01.2009 @ 11:39pm

That's is really cool!

Duryodhan said...
17.12.2008 @ 01:13am

Hello
Your blog is very good ,
I am Duryodhan from orissa India
I am workin as a SEO Spacalist
I want talk to U give your persional mail id

Alec Gorge said...
09.09.2008 @ 05:58am

Very neat. It makes you wonder how does microsoft make a rendering and layout engine so buggy that simply adding a child element fix the problem.

Jason Cole said...
29.08.2008 @ 03:20pm

That is a great little trick.

Add your thoughts

Fields in bold are required.

Add a comment



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.