In my experience, PIE.htc can be tricky to implement; but once you work out a few kinks and become used to it's behavior it can become quite useful. Many of my larger client are still using IE7 and or IE8.
First, PIE.htc does not like shorthand CSS. Here is how I would declare your attributes.
#prueba {
border: 1px solid #999;
-webkit-border-radius: 10px 10px 10px 10px;
-moz-border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
}
Secondly, you will need to declare the behavior in the section of the page you are applying it to; like so:
<style type="text/css">
#prueba {
behavior: url("PIE.htc");
}
</style>
</head>
This should work for you. A few things to keep in mind...
- PIE.htc needs to be in the root of your site, you will have issues if you have to access it within a folder.
Sometimes calling the behavior will not work if the selector has a parent attribute. For example, if #prueba
lies within another <div>
like #content
for example, you would use:
#content #prueba {
behavior: url("PIE.htc");
}
- I always call my PIE.htc right before the closing
</head>
tag. It doesn't have to be, but I find it always works this way.
Hopefully this helps. Most of these issues can be found in the documentation on css3pie.