Glen Lipka schrieb:
Regarding conditional comments to include other CSS: I find it annoying. Here is why. When I declare a class like div.header ul.global li.something span.other {margin-top: 10px} (or whatever) and realize that IE6 is 3 px off, and I cant figure out why. And my boss is pressuring me to move on. I want to define the hack or override for CSS -next- to the original class. Putting it in a ie6.css file doesnt allow me to keep the classes together and organized.

> Last question, Dont CSS hacks make you feel dirty?  I hate them.

I can see the point, but: The approach of separating style sheets has important advantages.

* Once you/your company decides to completely drop support for IE 6, instead of searching through a style sheet and removing hack by hack, you can simply go along, delete one style sheet and have a cup of coffee (or a beer maybe). Imagine how clean you'd feel then :-)

* Keep the basic style sheet for standards compliant browsers smaller. Why deliver hacks for a dinosaur browser to browsers that shouldn't see that crap at all?

I hate hacks too, but we can't live without'em.


-- Klaus

Reply via email to