CSS3 PIE Forums
http://css3pie.com/forum/

Can't seem to make it run at all in IE8
http://css3pie.com/forum/viewtopic.php?f=3&t=1834
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
Code:
//included the script
<script type="text/javascript" src="~/Scripts/PIE.js"></script>

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

//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,
Daniel

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

Thanks

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/