Im trying to demo CSS3PIE and it wont work in IE at all.
HTML:
Try adding
position:relative;
z-index: 0;
as suggested here http://css3pie.com/forum/viewtopic.php?f=3&t=10
This question is similar to the one posted here: CSS3 PIE - Giving IE border-radius support not working?
Try to clear cache in your browser. Especialy when you switch between compatibility modes. It really helps
CSS3 PIE - Giving IE border-radius support not working?
The PIE.htc requests should respond with the mime type "text/x-component" - or IE won't touch the behaviour.
Make sure you have the latest beta release. If the HTC file still causes issues, try the JS implementation.
adding: AddType text/x-component .htc
- to the .htaccess
file worked like a charm for me.
The shorthand CSS property let's you control what corners to round or not.
border-radius: 0 15px 15px 0;/*(top-left, top-right, bottom-right, bottom-left). */
The behavior
location should be relative to your HTML file, not your CSS like any other declaration using url()
. So assuming your index.html
and PIE.htc
is in root and your CSS is inside a 'css' folder, you should go like this:
background-image: url(../images/example.jpg);
behavior: url(PIE.htc);
Also, try adding a .htaccess
file with the following content in the same location as the PIE.htc
file:
AddType text/x-component .htc
Hope this helps.