Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAshleigh Irwin
3,180 PointsI found a bug in the CSS specificity quiz.
I found a bug, the question asked for the highest specificity, and I chose the answer with the highest specificity. But the quiz tells me I got the question wrong even though in the explanation it states that I chose the answer with the highest specificity.
Needs corrected.
1 Answer
Tanja Schmidt
11,798 PointsGot curious and tried your quiz - it worked just fine. The answer with the highest specificity is:
<p style='color:red;'>
That is because it is written directly into this specific html tag and thus it is applied definitely only to this one (=> this is inline style!).
I also tried choosing both of the wrong answers and I think I know what you mean now. You are referring to this message: "Bummer! Inline styles are at the lowest level of the cascade so they have the highest specificity." => This is not saying that you have already picked inline style - it is saying instead that you should have picked inline style to get the answer right. The lowest level of the cascade overwrites all previous levels.
Simon Coates
28,694 PointsSimon Coates
28,694 Pointshttps://teamtreehouse.com/support has the following quote: "Report a bug: Shoot us an email at help@teamtreehouse.com with a link and a screenshot. If this bug hasn’t been reported before, we’ll award you a special Exterminator badge as a thank you!"