Digg Interview Question: What is CSS specificity?... | Glassdoor

Interview Question

Web Applications Software Engineer Interview San Francisco, CA

What is CSS specificity?


Interview Answer

2 Answers


Specificity determines, which CSS rule is applied by browsers. “Specificity is a type of weighting that has a bearing on how your cascading style sheet (CSS) rules are displayed

here is very nice article explaining it

Anonymous on Dec 10, 2011

Here is an excellent Medium article by Dan Eden that elaborates (with examples) how CSS specificity works:

Anonymous on Feb 4, 2016

Add Answers or Comments

To comment on this, Sign In or Sign Up.