Unfortunately, Internet Explorer 6 - 8....maybe even 9......doesn't natively support those features. So while spending some time on google, I found a great solution: pie.
No, really.
There is a plugin created to enhance the capability of IE6+ with CSS3 features.
It is called 'PIE' : Progressive Internet Explorer.
http://css3pie.com/
It has support for the following features:
- -pie-watch-ancestors
- PNG alpha transparency and -pie-png-fix
- Lazy Initialization (-pie-lazy-init)
- Layout polling (-pie-poll)
#myelement
{
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius:10px;
behavior: url(path/to/PIE.htc);
}
One thing that it is lacking right now is support for text-shadows. So here is another script that can be used for that:
http://fetchak.com/ie-css3/
Same type of concept. Inside your CSS file, declare your text-shadow like normal. Then simply provide a link to the behavior like so:
#myelement
{
text-shadow: 1px 1px 1px #888888;
behavior: url(path/to/ie-css3.htc);
}
As an extra precaution, I went inside the file and commented the box-shadow and radius functions (lines 281-282) -- I didn't want those to overlap with PIE, which look a little better than this wrapper.
NOTE: I don't think the above code will work with em sizes, only with px (Haven't tested this yet)
Hope this was an inspiration to others!
No comments:
Post a Comment