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 CSS Foundations Text, Fonts, and Lists Text Properties

removing text decoration from a link

I tried:

a:hover { text-decoration: none; }

and also putting it inside of the paragraph. Each time it tells me to check the text-decoration. What am I missing?

You are removing text decoration from a link, when link is hovered. Remove the pseudo class hover.

1 Answer

Hi,

What Sherish Banu said .

it should look like

p {
text-decoration:none;
}

if this is for a paragraph , it should remove all the links decoration in it . The color will be the same i think cant remember , so you put the color what you want so

p {
text-decoration:none;
color:black;
}

but in hex code with is i think 999999 with the phone number at the start , cant show it on mac .

Hope this helps , tell me if it works, if not , ill find a way.

Thanks for your help. I guess what I was looking for was

a:link { text-decoration: none; }

if its for a link then yes, It depends what you mean by having a decoration a bit . and how its build.