When you're doing CSS in the real world, you have to handle the CSS bugs in various browsers. But don't embed them in your real style-sheets and clutter everything up. Rather, have a single CSS that has all the work-arounds, and decorate your
<html>
tag with multiple classes that pull in all the work-around rules. Next, use javascript to handle the injection of those classes automatically at page load!
When bugs become patterns - A look at CSS Hacks
No comments:
Post a Comment