How do I make the CSS file valid?

I have a CSS file that uses CSS3 properties ( opacity

and -moz-*

and -webkit-*

). Certainly not validating like CSS 2.1 . It doesn't matter, but still, can you make it valid CSS 2.1?

+2


source to share


4 answers


Not without the use of these selectors, no.



+6


source


Invalid values ​​or unknown properties are ignored. So if you don't have a syntax error, you can use these values ​​/ properties.



Or do you want to have a valid CSS 2.1 stylesheet to put the icon on your site?

+1


source


Unable to check for invalid CSS.

Invalid CSS with non-standard selectors.

+1


source


Use all CSS3 properties in another css sheet and validate it without CSS3 :)

0


source







All Articles