Question

I have a CSS file that uses CSS3 properties (opacity and -moz-* and -webkit-* ones). Of course, it doesn't validate as CSS 2.1. Not a big deal, but nevertheless is it possible to make it valid CSS 2.1?

Was it helpful?

Solution

Not without not using those selectors, no.

OTHER TIPS

Illegal values or unknown properties are being ignored. So unless you have a syntax error, you can use those values/properties.

Or do you want to have a valid CSS 2.1 stylesheet just to put a badge on your website?

It is not possible to validate an invalid CSS.

A CSS with not standard selectors is not valid.

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top