Reputation: 33
Since many modern browsers support CSS3, I would like to use many CSS 3 features to use on my work but some older browsers still not support CSS3. Should I separate those two css files separately? Or is there an effective way to handle both old and new browsers while having most of nice features of CSS 3.
Upvotes: 3
Views: 141
Reputation: 9752
You could have a look at HTML5 boilerplate.
If you take a look at the very first lines of index.html
, you'll see how to use various features of CSS depending on the browser, all within the same CSS file. The idea was originally explained here.
In very short, the trick is to conditionnally define which CSS classes apply to body
depending on the browser.
Upvotes: 3
Reputation: 15028
If you want to support many CSS3 features in IE6-9, you should use PIE.
Upvotes: 0