Currently there is the css3 version however there are the previous ones. Is it correct to mix code of all of them in the same style sheet?
Currently there is the css3 version however there are the previous ones. Is it correct to mix code of all of them in the same style sheet?
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 style sheet.
What is not compatible, ie the difference is what version of CSS that browsers support. An older version of Internet Explorer may not support CSS3 (or some of its rules). So in that case CSS2 might run fine, but CSS3 does not.
So the mixture has no problem. The problem you may have is that some browsers do not support more modern CSS rules.