Getting iepngfix to work |
[eluser]Unknown[/eluser]
I just spent a lot of time pulling my hair out trying to get iepngfix to work with Codeigniter. I tried every path I could think of in my css file (for the behavior property), but my htc file simply wasn't being found. I searched the internet for a solution, but it seems like I'm the only one on the planet who has had any major trouble with this. Finally I stumbled onto the "base" tag, which is something I didn't know existed. By putting Code: <base href="<?=base_url()?>" />
[eluser]coolgeek[/eluser]
This works for me in my IE css override file Code: img { behavior: url(/js/iepngfix/iepngfix.htc); }
[eluser]umefarooq[/eluser]
make your life easy use this jquery script, which will fix png for IE http://jquery.andreaseberhard.de/pngFix/
[eluser]Unknown[/eluser]
coolgeek: Before putting in the base tag, this line of code did not work with any path: Code: img, div {behavior: url(fix/iepngfix.htc);} umefarooq: Thanks, that does look easier. |
Welcome Guest, Not a member yet? Register Sign In |