Techniques to use when IE6 dies
Everyone except Microsoft themselves are talking about the death of IE6. I've tried motivating people to drop support, arguing that you at least can show IE6 users a message. Many have replied with "but our IT department doesn't let us…", and I can say nothing more than that the IT department is filled with humans. Which means they are lazy, and upgrade when people whine enough about it. It's a shame it has to be that way, that we have to punish people for their IT departments, but that's how it has to be.
As web developers, we should be the ones complaining the loudest. We have so much to win on IE6:s death it's silly. Just look at the below list of things IE6 can't do, but IE7 can (the next worst browser):
- Native PNG alpha transparency without silly hacks.
- Several selectors: Child selector (">"), Adjacent sibling selector ("+"), Attribute selectors ([attr=value]), and General sibling selector ("~", CSS3)
- Min-height, Max-height, Min-width, Max-width
- Multiple class/id selectors in the same ruleset (ie. .class1.class2 { … })
- :hover on all elements, not just links
- position: fixed
- Native XMLHTTP (Without ActiveX)
- International Domain Names (IDN), the ability to use UTF-8 chars in domains
- Page zoom that zooms the whole page (don't worry about zoom)
This is a huge step forward for us web developers. Huge! Bigger then when CSS3 comes out, because we won't be able to use that one for years. Someone is pushing the front of what's possible, I'm pushing for the front of what's usable.
What can you do to help me get everything in the above list? And, did I forget something?
Sources:
Comments
By: Emil Hesslow (#1)
By: Csaba Kétszeri (#2)
It simply sends out a negative message about the page.
If the sale/marketing and the customer service department agrees in that this kind of message should be on the page, it is fine for the IT to put it on. After all, a world without IE6 is a better world. :)
By: Emil Stenström (#3)
By: Emil Stenström (#4)
By: Roland Bouman (#5)
yeah, I can't wait for it to die out too. Another thing that is sorely missing in IE6 is a print preview that doesn't suck.
BTW:
"Multiple classes/ids on the same element"
AFAIK, multiple classes on the same element works fine in IE6. At least I use the feature and it seems to work for me. Am I missing something?
By: Emil Stenström (#6)
By: Roland Bouman (#7)
When you wrote "multiple classes on the same element" I thought you meant:
<style type="text/css">...
.class1 { font-weight: bold}
.class2 { background-color: red}
</style>
...
<div class="class1 class2">...</div>
and this works fine - the div is styled bold with a red background.
What you are describing in your reply seems more like a ruleset with multiple class selectors. I tried it, but I can't get your particular example to work at all (tried Chrome, IE8 and FF 3.5). Am I missing something?
By: Emil Stenström (#8)
By: Alex (#9)
For max height:
* html div#division {
height: expression( this.scrollHeight > 332 ? “333px” : “auto” ); /* sets max-height for IE */
max-height: 333px; /* sets max-height value for all standards-compliant browsers */
}
For max witdh:
* html div#division {
width: expression( document.body.clientWidth < 334 ? “333px” : “auto” ); /* set min-width for IE */
min-width: 333px; /* sets min-width value for all standards-compliant browsers */
}
Anyway, i think that we could all e-mail Microsoft with suggestions about these facts.
By: John Stathon (#10)
It has many vulnerabilities as it benefits from a poor update system.
If you don't want to include the code that @Emil published in your websites you should know the following tips to avoid problems with your site design in IE6.
1.Use a doctype
2.Use display:inline for all floated elements
3.Use only
<a>
tags formhovered elements. (the CSS hover effects that IE6 can only apply are limited to<a>
tags)4.Avoid Percentage dimensions
I think that is a good idea to create a website with this theme of discussion, or support the existing ones.
By: Alex (#11)
http://news.bbc.co.uk/2/hi/technology/8196242.stm
'The software giant said it would support IE6 until 2014 - four years beyond the original deadline.'
By: Emil Stenström (#12)
By: Emil Stenström (#13)
The point here isn't that there are no workarounds. There are. It's about developers being able to focus on CSS, not those workarounds, and therefore be more productive.
By: Alex (#14)
Anyway, the majority of surfers that use IE6 are begginers so without Microsoft help it's very hard to make them change/upgrade their browser.
Regarding your last comment, what is the best way to avoid problems with Min-height, Max-height, Min-width, Max-width in IE6?
By: John Stathon (#15)
By: Emil Stenström (#16)
By: Alex (#17)
Anyway, i'm thinking that it should look good if i use your "8 years old browser alert" and urge all those who use IE6 to upgrade as soon as possible.
By: Jeff Seager (#18)
I wouldn't want to do that with a pop-up window. Maybe with something like we now use with the
noscript
tag that alerts people to enhancements only available with javascript enabled. Using javascript or another method, you could detect IE6 users and deliver that message only to them.In the end, I think the only way to choke out bad practices is to practice doing it right. We cannot insist that people upgrade their browser, but it's good to point out how upgrading will benefit them.
By: Jan Willem (#19)
En yes, I thinks IT fokes are lazy, lately we got new updates on every department and I remember the last programm became suitable for Explorer 8, so all programms are ready for browser update. Still they didn't update the browser, still they didn't give me a good reason why they didn't. Perhaps because I'm the only complaining about this. I don't understand my collegue, they all got newer browsers at home!
I have a support section in home some time which gives a message if people use IE 6. I think everyone should do this. It's time to move on, the only thing which should be done is install the new browser and if necessary (mostly even not) implement online programms.
By: Jan Willem (#20)
By: Alex (#21)
http://www.my-debugbar.com/wiki/IETester/HomePage
By: terry (#22)
@Alex - you can try http://browsershots.org/ to check various browser compatibility
By: Jim Westergren (#23)
From your third link I found http://www.ie6nomore.com/code-samples.html which I saved for later use - I think it is great.
What about floating anchors on inline lists? Isn't that a bug in IE6? Maybe I don't know the exact bug but I always have a headache writing the CSS for an ul element that is the nav menu.
By: Alex (#24)
By: Cody (#25)
Either way I think I'll be most excited not to worry about PNG transparency and the min and max heights and widths.
I seen some people looking for options to test IE. This is what I use if anyone is interested.
www.my-debugbar.com/wiki/IETester/HomePage
By: maxpagels.com (#26)
By: Alex (#27)
By: Randy Comeau (#28)
By: Sean (#29)
IE6 is the browser that just won't die.
By: JP (#30)
By: Vanessa (#31)
By: tswaters (#32)
If users of ancient browsers navigate around the internet and see that everything still works -- they will assume there is nothing wrong with their browsing experience. If every third page they see is broken, they might just get a clue -- and that's better than a push from Microsoft, IMO.
Then again, I should say I don't have customers, per say, visiting my web sites -- optimizing a site for a mass number of computer configurations isn't exactly a priority of mine. This is all anyone sees when they visit my site on an older browser: "Your browser is not future friendly. Upgrading as soon as possible will bring you a better internet experience, I promise."
By: jb007 (#33)