1

I have tried PIE.htc and background-color together, but rounded-corner not working in IE8. my css is as follows.

#main{

     background-color: #CD0D00 !important; 
     -webkit-border-radius: 15px 15px 15px 15px; 
     -moz-border-radius: 15px 15px 15px 15px; 
     border-radius: 15px 15px 15px 15px; 
     behavior: url(PIE.htc);
     -webkit-box-shadow: 0 7px 10px rgba(0,0,0,0.3); 
     -moz-box-shadow: 0 7px 10px rgba(0,0,0,0.3); 
     box-shadow: 0 7px 10px rgba(0,0,0,0.3);

}

NB: When I remove "!important" from background-color, the color not appears but the Rounded corner working in IE8, otherwise not.

karthik
  • 25
  • 1
  • 9

1 Answers1

1

Well, using !important is known to cause problems with CSS3Pie, so that's no surprise.

As for the background-color on it's own without the !important, I'm not immediately sure why it isn't working, but a few suggestions:

  • Try using the shorthand background style instead -- ie background:#CD0D00;. CSS3Pie tends to prefer shorthand styles for most things.

  • For some background properties, CSS3Pie can't support them in the standard background style; it needs a custom -pie-background style. In theory, this only applies to advanced background properties, and shouldn't be needed for a basic background color, but it's worth trying it.

I don't have a copy of IE to hand at the moment to try it out, but hope that helps.

Spudley
  • 166,037
  • 39
  • 233
  • 307