Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mechietechie

    (@mechietechie)

    First of all, all that stuff with * html is hacks for IE. A big issue with how you’re using them is you have them at the top of your stylesheet, before anything else. So the stuff for standards-compatible browsers is overwriting your hacked sections, because CSS sets it’s definitions by what shows up last. (So, for example, if I had p {font-size:10px;} in one section, and at the bottom of the stylesheet, I put p {font-size:12px;} the font that would show up on the site would be 12px.) So IE is reverting back to the standards-compliant defaults, and making your hacks moot.

    Second of all, you should use conditional comments instead of hacks for IE. When IE7 comes out – althought the * html hack supposedly isn’t affected by IE7 – you’ll be in a world of trouble in trying to fix everything because of the hacks. Stay away from hacks. Just code for standards-compatible browsers, and use conditional comments for IE. Makes life a whole lot easier.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS Tags Screwy in IE’ is closed to new replies.