0

I have the PIE.HTC in the root directory and trying to make rounded corners work in Internet Explorer

This is my CSS

#credits-earned
{
    border-style:solid;
    border-width:2px;
    border-color:#EDEDED;
    width:170px;
    height:60px;
    margin-bottom:10px;
    font-weight: bold;
    border-radius:8px;
    behavior: url (PIE.htc);
}

The HTML this is trying to take effect on is:

<div id="credits-earned">
                        You need to earn X<br> more credits today to avoid losing credits
                    </div>

However the rounded corners are not working in IE.

Any help be appreciated.

Spudley
  • 166,037
  • 39
  • 233
  • 307
Legend1989
  • 664
  • 3
  • 9
  • 23

2 Answers2

0

when including a resource in a external css file the URL is relative to the css file.

if you want to include something from a different directory you could use a relative path (example behavior:url('../PIE.htc')) or use a absolute path (example behavior:url('/PIE.htc'))

for more on path's in stylesheets - Using relative URL in CSS file, what location is it relative to?

Community
  • 1
  • 1
Josh
  • 3,264
  • 1
  • 23
  • 35
0

Apart from the proper path for pie.htc to work, give:

 #credits-earned
 { position: relative;
 }
Neeraj
  • 132
  • 7