Howdy_McGee Posted December 12, 2010 Share Posted December 12, 2010 So I was doing some research on Round Borders and Internet Explorer 8 and apparently you can achieve it using an .htc file. I was wondering what an HTC file type is and how I can use it to achieve round borders in IE8?http://stackoverflow.com/questions/4326363...r-radius-in-ie8 Link to comment Share on other sites More sharing options...
Dilated Posted December 13, 2010 Share Posted December 13, 2010 So I was doing some research on Round Borders and Internet Explorer 8 and apparently you can achieve it using an .htc file. I was wondering what an HTC file type is and how I can use it to achieve round borders in IE8?.htc's are HTML Components (http://en.wikipedia.org/wiki/HTML_Components). They're something microsoft invented during the last browser wars. They never really saw any major use to my knowledge, they were just another one of IE's non-standard additions. The creator of CSS3PIE (http://css3pie.com/) discovered he could use an .htc to begin to emulate CSS3 effects. To my understanding, the csspie .htc file makes use of another non-standard microsoft addition to achieve its effects: VML (http://en.wikipedia.org/wiki/Vml), which is essentially microsoft's version of SVG, and (arguably) one of the precursors to it. It works like this:div { border-radius: 5px; behavior: url(pie.htc); } And the border-radius will show up in IE6-8.As far as I know, CSS3PIE does have some limitations. I've never actually used it myself. Link to comment Share on other sites More sharing options...
Howdy_McGee Posted December 14, 2010 Author Share Posted December 14, 2010 This seems awesome, why isn't this more widespread? Link to comment Share on other sites More sharing options...
ShadowMage Posted December 14, 2010 Share Posted December 14, 2010 This seems awesome, why isn't this more widespread?Probably because people like me can't get it to work...:)No matter how hard I try I can't get the styles to apply in IE. Link to comment Share on other sites More sharing options...
Howdy_McGee Posted December 14, 2010 Author Share Posted December 14, 2010 I had the same problem. Turns out that 50% of the people that use this HTC file can only use it on a SERVER. If they try and run it locally nothing happens. Link to comment Share on other sites More sharing options...
ShadowMage Posted December 14, 2010 Share Posted December 14, 2010 I had the same problem. Turns out that 50% of the people that use this HTC file can only use it on a SERVER. If they try and run it locally nothing happens.I did have it on a server. Still couldn't get it to work... Link to comment Share on other sites More sharing options...
jeffman Posted December 14, 2010 Share Posted December 14, 2010 This page is a little old, so I don't know if it still applies: http://support.microsoft.com/kb/306231/en-usThe topic is Apache, htc, and mime types. Link to comment Share on other sites More sharing options...
jeffman Posted December 14, 2010 Share Posted December 14, 2010 I wonder too if this is one of those things where the W3 standard ruleset needs to come before/after the IE ruleset or one wipes out the other. Maybe IE conditionals would help? Link to comment Share on other sites More sharing options...
ShadowMage Posted December 14, 2010 Share Posted December 14, 2010 I wonder too if this is one of those things where the W3 standard ruleset needs to come before/after the IE ruleset or one wipes out the other. Maybe IE conditionals would help?No I tried it with the IE stuff first and last, didn't make a difference either way. Never tried conditionals, though.I don't use Apache, so that link doesn't really apply to me. I was looking on the CSS3PIE website and they made mention of incorrect MIME types too and the solution they listed was to link to the provided php file, which would then supposedly serve up the HTC file with the correct MIME type, but that didn't work either. Link to comment Share on other sites More sharing options...
Howdy_McGee Posted December 15, 2010 Author Share Posted December 15, 2010 You should try posting on the CSS3PIE forums, they were helpful for me. Plus this is a pretty awesome code tidbit In My Opinion, worth checking out. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.