Forum Moderators: not2easy
I'm just starting to learn about CSS hacks, and I have a quick question. Why did the community use hacks like the Tan Hack to declare IE styles rather than a conditional comment?
I'm reading now that to support IE7, people should fix their CSS to use conditional comments, but if it has been around since IE5/win , why didn't they use them originally?
Thanks!
Workarounds and Hacks taught most of the early birds how it should work, there's nothing like taking something apart to figure out how it works ;)
Now in return you need to do the same, don't learn the hacks... learn the how and the why (they were used) but more importantly learn how to deal with the same situations today.
IE conditionals are not a hack but they are nothing more than IE's way out.. they made a bad choice with their CSS support but they did create a back door... conditionals are not "the right way" to do things but damn they're good and nowadays they will work! If you want to understand CSS unfortunately that means you need to know it's history, and you might need to understand why IE (in quirks rendering mode) ever needed a box model hack in the first place ~ (that'll be where we had to use a tan hack previously)
This need for hacks or understanding has not gone away as far as I know, unless everyone has suddenly started to make sure their pages are in Strict rendering mode?
And you thought you'd asked a "quick" question ;)
[edited by: SuzyUK at 9:35 pm (utc) on Aug. 8, 2006]