I'm branding a new Sharepoint 2010 public facing website. In this website I want to use shadows and rounded corners around several containers. I first tried to do it myself, but a colleague of mine told me about CSS3Pie (http://css3pie.com), which works really nice.
The problem I'm experiencing is specifying the path of the HTC-file. At the moment I've got this:
#left_content_small
{
width: 610px;
padding: 20px;
border: 1px solid #999;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-moz-box-shadow: 10px 10px 5px #888;
-webkit-box-shadow: 10px 10px 5px #888;
box-shadow: 10px 10px 5px #888;
behavior: url(/PIE.htc);
}
This isn't working properly in IE. Also, using
behavior: url(Style Library/StyleSheets/PIE.htc);
isn't working either. Also, placing " or ' around the string doesn't work. However, specifying the behavior URL like this:
behavior: url(_layouts/PIE.htc);
does work. All containers are now rendered correctly.
I could place the htc-file in the layouts folder, but I prefer not to as it kind of corrupts the default Sharepoint folders with custom files.
I've checked the page loading with Fiddler and I see the PIE.htc file returning a 200-code (which is good) in all cases. It doesn't matter if I place it in the layouts, style library or root of the site, every time it's returning a 200.
There are some known issues with CSS3Pie: http://css3pie.com/documentation/known-issues/ which state something about relative url's and such. I thought I've nailed it by placing a /-character in front of the url.
Also tried the full domain url (http://testsite.local/PIE.htc
), but that isn't working properly either.
Any ideas of how to place the htc file somewhere in the Sharepoint 2010 site and not in the layouts folder?