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.
Since many modern browsers support CSS3, I would like to use many CSS 3
Share
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
bodydepending on the browser.