Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the css version?

Tags:

css

How do I find the version of CSS that I am using?

like image 342
Sachindra Avatar asked Dec 14 '10 15:12

Sachindra


3 Answers

Although the CSS specification is defined in several versions (v2, 2.1, 3), the CSS version isn't really relevant to the developer; you need to be more concerned with which web browsers support a given feature.

It is useful to know that a given feature was defined in CSS2, 2.1 or 3 because that can give you an idea of how old the feature is, and therefore how likely it is that browsers will support it -- for example border-radius is a CSS3 feature, so browsers more than a couple of years old may not support it fully.

You can find out what CSS features are supported in which browsers from the following sites:

  • http://www.quirksmode.org/css/contents.html
  • http://caniuse.com/
like image 195
Spudley Avatar answered Oct 11 '22 03:10

Spudley


The version is only defined by the CSS selectors, propreties and attributes that you use.

You are free to mix elements of CSS 1, 2 and 3 in any styles that you write.

You can refer to the CSS specifications to see more details. The specifications and drafts at the W3C is available via this index: http://www.w3schools.com/w3c/w3c_css.asp

like image 42
Craig Avatar answered Oct 11 '22 02:10

Craig


Just an addition of what @Craig said.

In my .net 2.0 framework I have a property to show scroll bars. As I want just the vertical, I've added both properties and, if the browser that user is using support this new CSS 3.0 property (overflow-x), he will see just the vertical one.

enter image description here

like image 23
Jorge Avatar answered Oct 11 '22 01:10

Jorge