You need to sign in to do that
Don't have an account?

.htc files for styling
I'm working with an htc file to style my visualforce pages. The problem is that the .htc file needs to live on the server that the html pages are being served from. I am unable to reference this file, or figure a means to make it work. I tried using:
{!URLFOR($Resource.DomainCss, 'style/PIE.htc')} - this doesn't work somehow. No paths or sheets are recognized using this method of getting resources, whether looking for .css, .js, or .htc files. ( Actually, the example for URLFOR doesn't seem to work either... )
So I wrote a line for each stylesheet:
{!$Resource.Master}, {!$Resource.Secondary}, {!$Resource.Typo}, etc. and all files are found and serve their purpose.
But.. I cannot get the .htc file to be seen. ( This is IE only, btw. ) I am using PIE.htc and cannot find a way to include the file in a meaningful way. Has anyone else ever tried or seen this done?
Thanks much in advance.
b
Same issue - anyone doing this?
Hey - thought I'd reply as I've figured out how to get CSS3 working for IE. I use the .js version of CSSPie (CSS3Pie.com) and include it in a conditional statement for IE only at the top of the VF page and add the function at the bottom of the page. After you download the .js file and put it in your Static Resources, add this to the top of the VF page.
Then this at the bottom:
Finally, add this to the controller:
Now you're ready to use the CSS3 elements listed on the PIE website and they will work in IE 7+.