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.

CSS Let's Practice Selectors!

Benjamin Schmiedel
Benjamin Schmiedel
3,160 Points

Maybe a little bug in the solution :)

question 3] Create hover and visited styles for all links inside 'main'

given solution:

main a:hover {
 color: tomato;
 text-decoration: none;
}

main a:visited {
  color: skyblue;
}

the problem: if the user has visited link ones, he will never get the hover color change again, because the visited pseudo class is now true and on a higher source order than the hover pseudo class.

the solution: "main a:visited" first, than "main a:hover"

main a:visited {
  color: skyblue;
}

main a:hover {
 color: tomato;
 text-decoration: none;
}
Steven Parker
Steven Parker
221,292 Points

Good eye! :eyes: You can also report course bugs directly to the staff as described on the Support page, which might get you an "Exterminator" badge.