CSS - Hacking My Way Through Ie6, Ie7 And Ie8
Ok, I am not a regular web developer and therefore I do not know some basic tricks of the trade. I developed my website and it looks great on FireFox - a little worse on IE8. I am not surprised, I know that CSS hacks are need to make a website look well on both FireFox and IE. However what I did not know is that different hacks are needed for different versions of IE. I have been going round the web to find some ways to hack and it seems that IE6 takes hacks can work with an underscore, IE7 hacks work with a star at the front, and IE8 hacks need a \9 at the end of a line.
Rather then ask help for each particular problem I have with compatibility in these browsers (which most probably I'll finish doing all the same), I thought it would be better to learn how these hacks work, how they should be done, and how they should be managed (like a sort of strategy). Does anyone know about a good website where I can learn how to make a website look good for most of the browsers out there (maybe even Opera and Safari)? Similar TutorialsProblem page. Ok, I want to avoid using javascript and prefer to use CSS to change the background image of a hyperlink on the hover event (see the left nav menu). Of course, IE doesn't support :hover outside of anchors. Works beautifully in FF, Opera. I found an interesting article that mentions how to go about hacking IE. Essentially, creating a .htc file w/ javascript that when tied in with the style sheet, will perform the hover effect (will get to this point in a moment). When I tried to do that, it still didn't work. After more detailed reading, it turns out on Win XP w/ SP 2 that you have to insert a x-content mime header into the page. No luck. So, after beating my head over and over again, I'm resorted here. If I know I can use javascript to achieve the same effect, and I'm creating a .htc file that creates the effect by using javascript, which I want to avoid, is there any way to get this thing to work in IE without the use of javascript? Does anyone have any suggestions or can you point me in the right direction? Muchas gracias |