As web developers, we all hate Internet explorer to an extant. But in my earlier post, I wrote why not to hate Microsoft and IE. It is the people who use out dated software (IE6 is almost ten years old) and try to run our CSS3 level high Ajax’s web 2.0 designs.
border-radius
Last year, I published an htc file, which makes Internet explorer 6 to have rounded corner DIVs. For other modern browsers, we can have border-radius CSS property. For mozilla, you need to prefix -moz- and for webkit based browsers (Safar, Chrome) prefix -webkit- . SO the CSS for a DIV with rounded edges will have following styles.
.curved { -moz-border-radius:10px; -webkit-border-radius:10px; border-radius:10px; }As IE wont support these CSS properties, you will have to add one more line of css and an HTC file. Here is more explanation how to make rounded corner divs in IE.
Good news : Microsoft’s Internet Explorer 9 is expected to support border-radius property.
Early this month, Nick Fetchak of fetchak.com sent me a new htc file with support for IE5 to IE8 which is amazing and working well. You can find the latest version that file here.
box-shadow
Box shadow is another simply amazing CSS3 property, which is unimaginable to work in IE. It works on Safari 3 and Firefox 3.1 onwards and Google Chrome. I am not aware of Opera this time. So what you think about making this work on IE6 ? No kidding..
CSS for box-shadow is:
box-shadow: 10px 10px 5px #888; padding: 5px 5px 5px 15px;For older version of Firefox, you might have to add -moz- and for Safari and Chrome, try -webkit- as prefix. (My Chrome is already supporting without any prefix).
So, here what you need for IE to make box-shadow.
behavior: url(box-shadow.htc);
Download the htc file here or Demo here. The project is hosted on Google code.
havent had a go of using this yet myself so not sure how well it works, but i’ve used previous .htc files for other ie6 fixes such as transparent png. a few people have commented on how they have a few issues with this .htc file. i also see that Remiz has a rounded corner div file for IE. not really had much use for this yet, as nothing that i have built so far has really had rounded corners in the layout, but im sure in the near future there will come a time when something like this will need to be looked at.
whats your thoughts on this, are you the kind of developer who doesn’t mind not having the css3 style apply to IE and just have it work for newer browsers? I myself believe that this is the better option as long as the IE 6 version of the site look ok and works as intended there is no real need to add all the extra fancy look features and just leave them for the newer browsers as long as this is explained to the client before work begins.
Posted via web from Dans World