0

I am attempting to use CSS3 PIE to render some CSS3 styles in legacy browsers. I am using wordpress and have implemented it as so (I have taken it out of an ie conditional so I can test it in firebug):

<style type="text/css">
        #breadcrumbs,
        #breadcrumbs ul#parent,
        #breadcrumbs ul#parent li ul,
        #breadcrumbs ul#parent li ul li,
        #searchform,
        #searchform #input, 
        #searchform #submit {behavior: url("<?php echo get_template_directory_uri();?>/PIE.htc");}</style>

This outputs:

<style type="text/css">
        #breadcrumbs,
        #breadcrumbs ul#parent,
        #breadcrumbs ul#parent li ul,
        #breadcrumbs ul#parent li ul li,
        #searchform,
        #searchform #input, 
        #searchform #submit {behavior: url("http://rcnhca.org.uk/sites/first_steps/wp-content/themes/megaamazing/PIE.htc");}</style>

http://rcnhca.org.uk/sites/first_steps/wp-content/themes/megaamazing/PIE.htc resolves correctly in the browser, however the file is not loading and no request is made for it from the firebug net panel.

Does anyone know what is happening? A live example can be found at http://rcnhca.org.uk/sites/first_steps/

George Reith
  • 13,132
  • 18
  • 79
  • 148

2 Answers2

0

I am not familiar with this but I hope this will help you

style type="text/css">

#breadcrumbs,
#breadcrumbs ul#parent,
#breadcrumbs ul#parent li ul,
#breadcrumbs ul#parent li ul li,
#searchform,
#searchform #input, 
#searchform #submit {behavior: url("http://rcnhca.org.uk/sites/first_steps/wp-content/themes/megaamazing/PIE.htc");}</style>
Ghost Answer
  • 1,458
  • 1
  • 17
  • 41
0

I think you have to specify the path from your server (dir), not the URL. For example, /var/www/myproject/path/to/my/PIE.htc.

sp00m
  • 47,968
  • 31
  • 142
  • 252
  • absolute paths should work just fine, many people are using them to load .htc files in wordpress themes. Using this format doesn't make it request the file. – George Reith Apr 19 '12 at 10:04
  • And if you try to give the path relative to the HTML document that uses it? As you can see [there](http://css3pie.com/documentation/known-issues/#relative-paths), it seems to be a known issue. Maybe you should also specify the content-type within your `.htaccess` file, as explained [there](http://css3pie.com/documentation/known-issues/#content-type). – sp00m Apr 19 '12 at 11:35