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 trial
Vic Mercier
3,276 PointsI don't understand how the last CSS file work?
It seems the last CSS file does something special (overrriding);I don't understand overriding.
2 Answers
Martin Zarate
10,723 PointsI say red. I say blue. The last one to say something is the one that gets used. The browser reads css styles and the last one it finds is used. Unless the !important keyword is used, in that case, it won't override.
David c
Courses Plus Student 27,988 PointsVic can you elaborate more on your issue. The question is kind of hard to follow exactly the trouble you are facing.
Vic Mercier
3,276 PointsVic Mercier
3,276 PointsWhat are you talking about?!
Jonathan Grieve
Treehouse Moderator 91,254 PointsJonathan Grieve
Treehouse Moderator 91,254 PointsMartin is talking about the "Cascading" nature of Stylesheets. One style in one file will override the same style in another, depending on the order it is linked in a HTML file. So... the web browser will style elements based on selector specificity and the cascade.
For example
Inline styles
<a style="color: red;">Link<a/>will have higher specificity than a page style and will therefore be styled first.An
ID selectoris more specific than aclass selectorand will therefore be styled first.