Jump to content

Round Borders IE8


Howdy_McGee

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...