0

I'm having trouble determining the specificity of this CSS rule. I've read plenty on the matter. What is the specificity of:

#sidebar h1, p em, p a:hover{ … } 
2
  • There are three selectors here,#sidebar h1, p em and p a:hover. Each selector will have its own specificity, which can be determined. Commented Dec 12, 2015 at 1:17
  • I am being asked what the total specificity is. I am given the options 114, 115, 204 and 205. I can't seem to get any of those answers though Commented Dec 12, 2015 at 1:18

1 Answer 1

3

There are three selectors here,#sidebar h1, p em and p a:hover.

The specificity values are: 101, 002, 012 respectively.

If you add these up, the total is 115.

However, keep in mind that this value is meaningless since the selectors are applied independently of each other.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.