Can we use all versions of css on our website?

Asked

Viewed 518 times

3

There is currently the css3 version however there are the previous ones. It is correct to mix all the code in the same stylesheet?

1 answer

7


Different CSS versions are retro compatible with each other. This means that code in CSS2 and CSS3 may be present on the same page, or stylesheet.

Which is not compatible, which is the difference is which CSS version browsers support. An older version of Internet Explorer may not support CSS3 (or some of its rules). So in this case CSS2 may run well, but CSS3 does not.

So mixing is fine. The problem you may have is that some browsers do not support more modern CSS rules.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.