but what goes inside that .htc file? can’t find an example of an .htc file… this still mystifies me a bit… would appreciate a short introduction…
(and is this something that is needed only for IE?)
[SIZE=3]thank you but I don’t see examples of .htc files in this url… (this url is mostly about :hover) I still have no idea what .htc files contain… why is it so hard to find examples of .htc files online?? sitepoint has doesn’t have any anywhere on their site??
(why did sitepoint change its look-and-feel AGAIN? the font on these editing windows is now smaller than ever… this is absurd…
this is one big flaw I see today in most web designs… tiny tiny fonts… there’s no justification for this… more and more people are now on laptops – smaller screens… it’s very annoying to constantly have to adjust font-sizes or zoom up the browser window because web designers can’t be bothered to use decent font sizes… and when I adjust font-size in this editing window, it still looks THE SAME SIZE!!! ridiculous… I can hardly see what I’m typing… if I change the font-size in this editing window, I need to see the larger font WHILE I’M EDITING… )
The point of the link I posted was that it is an article about how to solve an IE problem by using a .htc file. IE recognizes a CSS property called “behavior”, which needs to reference a .htc file that contains a script. E.g.
body {
behavior: url("csshover3.htc");
}
Here’s a link to what’s in the csshover3.htc.htc file:
I’m not sure .htc files are relevant any more, now that IE6 is dead. But anyhow, the link you first posted kind of explains the situation like I just have. To write your own .htc file, you’d need to know JavaScript (or something like it). In normal circumstances, you’d just use one that’s written for you, such as the hover script I linked to above, or the pngfix script mentioned in the Reference.