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

CSS The Selectors Solution

Rodrigo Mendes Augusto
PLUS
Rodrigo Mendes Augusto
Courses Plus Student 2,032 Points

Why did you put some hover with text-decoration while other you didn't use it?

Why did you put some hover with text-decoration while other you didn't use it?

1 Answer

nico dev
nico dev
20,364 Points

Hi Rodrigo Mendes Augusto,

I guess the reason is because in the one he did not include text-decoration he had already set it to 'none' in the rule before to all links within nav.

Thus, they do no longer bring the default text-decoration of the user-agent or normalize.css (that are normally expected to come with underlining, etc.). No need to change it there then.

Now, in the case when he did explicitly change text-decoration on a 'hover', he was working on the links inside 'main' and the request was to create hover and visited styles not just change color.

Hope that I understood appropriately your question and that this somehow helps you clarify your doubt? Otherwise, reach out again and we can analyze it together again, if I can be of help. :)