Feeds

File: iepngfix.htc (Read: WTF is the .htc extension doing)

Submitted by Markus Merz on February 18, 2008 - 5:39pm in

I am trying to port this beautiful theme to another CMS. Looking at the archive content I find the file iepngfix.htc. As I have never used .htc files before I checked for the sense of it :)

In short: iepngfix.htc is a fix in the News theme for better MS-IE behavior.

In the CSS iepngfix.htc is mentioned once (and in no other file in the News theme):

/* h1 a span { display: none; }

h1 a {
width: 279px; height: 49px;
background: url(./images/logo.png) no-repeat;
display: block;
float: left;
margin: 16px 18px 0 0;
behavior: iepngfix.htc;
}
*/

Definition for .htc files

For Microsoft Internet Explorer 5 and later, HTML Components (HTCs) provide a mechanism to implement components in script as Dynamic HTML (DHTML) behaviors. An HTC is an HTML file that contains script and a set of HTC-specific elements that define the component. The component is saved with an .htc extension.

Source: MSDN HTC Reference (+ many more technical infos)

Another concrete .htc example with understandable explanations is here:

CSS Tooltips - Making Explorer Behave

I hope this info helps if somebody else stumbles over that mysterious iepngfix.htc file :)


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <h2> <h3> <h4> <img> <div> <a> <em> <strong> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <span> <table> <td> <tr> <caption> <th> <hr> <pre> <br> <p> <object> <param> <embed>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options