Conditional IE styling
by cindy ~ October 2nd, 2006. Filed under: development.Speed & I were recently having a conversation about the more stable alternatives in dealing with IE incompatabilities.
Do we wrap everything in container, inside container, inside container….. or….
Do we add a hack here & a hack there just to make it perform……….. or…………
Use some javascript & cross our fingers everyone has it turned on….. or …….
Use conditional style sheets for IE ……. or……
Do we give in and use tables
???
My reasoning here……
1. We want to use stylesheets because they are meant to make forms of media more compatable, and reduce redundant code in our documents making it go faster.
2. Isn’t MS defeating the purpose with their update to IE7 if we have to hack everything? Because we are just sticking pins in a leaky boat.
3. For security reasons we know that many businesses wont enable JS
4. Conditional style sheets I think is the way to go, because it is segregating those problem areas from what is otherwise clean code. It also make having to make those tweaks easier to find.
5. If we are going to stabilize webpage designs with IE & any of the above methods, then we should just revert back to using tables. Because none of the above would be utilized for what it is mean for, and that was the main aim of stopping using tables. It was also thought that by eliminating tables from the design factor, that there would be less code. But let’s face it…. table are more stable between browsers. They can be styled exactly the same way as div’s, and quite often can decrease the amount of code on a page.
So what’s your poison?



