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 trialBenjamin Schmiedel
3,160 PointsMaybe 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
231,275 PointsSteven Parker
231,275 PointsGood eye! You can also report course bugs directly to the staff as described on the Support page, which might get you an "Exterminator" badge.