CSS3 PIE Forums

Can't seem to make it run at all in IE8
Page 1 of 1

Author:  danieluc [ Mon Oct 29, 2012 2:18 am ]
Post subject:  Can't seem to make it run at all in IE8

Hi guys

I'm rather new in web development, and really need some rounded corners on a button.
I found css3pie and really like it, the only problem is that I can't seem to make it run.

I started a new project (asp mvc4 template) and included the pie.js (in Scripts) and pie.htc (in Content).
In index.cshtml I wrote
//included the script
<script type="text/javascript" src="~/Scripts/PIE.js"></script>

//wrote a new style
<style type="text/css">
    background: #EEE;
    padding: 2em;
    -moz-border-radius: 1em;
    -webkit-border-radius: 1em;
    border-radius: 1em;
    behavior: url(../../Content/PIE.htc);

//apply it to a button
<button class="xxxx">Click</button>

The expected behavior on IE8 is a button with rounded corners.
If the behavior path is correct (relative to cshtml) all I got is the text "Click", not even the background of the button. If the behavior path is wrong, I got a button like in the style but without rounded corners.

If I check with the development tools of the browser, the js is included, so that's not it.

Maybe it has something to do with the htc file? I don't know.

Any help would be appreciated.
Best regards,

Author:  danieluc [ Mon Oct 29, 2012 4:04 am ]
Post subject:  Re: Can't seem to make it run at all in IE8

If someone else is interested, issue was with ASP MVC. Found answer here:
http://stackoverflow.com/questions/4870 ... e-htc-file


Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group