Search code examples
csscss3pie

css3 pie htc not working IE7 and IE6 (works in IE8)


I am trying to get pie working to get rounded corners and gradients in all IE browsers 6+.

It is working in IE8, but for some reason not in IE7 or 6 - any ideas as to why?

Here is an example of my css element and html nothing special:

<style type="text/css">

#pietest{
border: 1px solid #696;
padding: 60px 0;
text-align: center; width: 200px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: #666 0px 2px 3px;
-moz-box-shadow: #666 0px 2px 3px;
box-shadow: #666 0px 2px 3px;
background: #EEFF99;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#EEFF99), to(#66EE33));
background: -webkit-linear-gradient(#EEFF99, #66EE33);
background: -moz-linear-gradient(#EEFF99, #66EE33);
background: -ms-linear-gradient(#EEFF99, #66EE33);
background: -o-linear-gradient(#EEFF99, #66EE33);
background: linear-gradient(#EEFF99, #66EE33);
-pie-background: linear-gradient(#EEFF99, #66EE33);
behavior: url('PIE.htc');
}

</style>

<div id="pietest"></div>

Solution

  • Could never find a solution but managed to get pie.js working instead