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

Michael Quirke
Michael Quirke
3,185 Points

Help: Text Properties, Code Challenge Task 4/4

Having trouble with this question 'Remove the text decoration from the link'.

My code is

a:hover
{ text-decoration: none;

}

I thought that was correct from watching the adjacent tutorial video but it seems I'm missing something.

Any help would be great, thanks. Edit I did have the tags set up in the correct way, but just shows up like this, apart from that all code is the same. Cheers

3 Answers

samiff
samiff
31,206 Points

You're so close. They want you to remove the links default style state, so you just need to put:

a {
    text-decoration:none; 
}
Michael Quirke
Michael Quirke
3,185 Points

Haha okay, so I just figured out from that there obviously wouldn't be a hover property included, I was just noting what was used in the tutorial video and didn't read the question through properly.

Thanks Sam, you're a life saver!

James Barnett
James Barnett
39,199 Points

@Michael -

For what it's worth, my advice would be don't follow the videos too closely. They are meant descriptive not prescriptive.

That can help you from getting tripped up by variable names and other stuff that differs between the videos and the code challenges, they aren't meant to match perfectly.