Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Bernadette Isaacson
13,736 PointsCreate hover and visited styles for all links inside 'main': Doesn't the order matter?
The solution in the video shows the rule for hover followed by visited, but that doesn't seem to work. The order matters--it should be visited followed by hover.
https://css-tricks.com/snippets/css/link-pseudo-classes-in-order/
2 Answers

Bernadette Isaacson
13,736 PointsYes, however the instructor doesn't adhere to that order in the video so the style sheet, as he has written it, is incorrect. I just wanted to point that out in case someone else gets confused and also bring it attention to staff that the video has an obvious error.

Ian Evans
Courses Plus Student 978 PointsHuh, never knew that!
Dayana Guevara
Courses Plus Student 2,008 PointsDayana Guevara
Courses Plus Student 2,008 PointsIt does works! In the excercise both pseudoclasses are refered to DIFFERENT links, 'hover' for navigation links and 'visited' for the links within de "main" section. The order matter when both pseudoclasses are applied to the same selector.