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 How to Make a Website CSS: Cascading Style Sheets Style the Basic Elements

Remove the underlines from all the links on the page.

Hi I am sorry I can't find links to remove the underlines

4 Answers

Keri Clowers
Keri Clowers
4,864 Points

If you still need help understanding, text-decoration is a CSS property that you can use to underline, overline, strikethrough, etc. text. The reason you need to put 'text-decoration: none' is that the default is for links to be underlined. So even though you didn't specify they should be underlined, they already are automatically. To override it set 'text-decoration' to 'none'.

Hope that helps!

Tnx Keri great explanation cheers!

Tnx Keri great explanation cheers!

James Barnett
James Barnett
39,199 Points

Keri Clowers - Now that's what I call clearly explaining a line code. Rock on :guitar:

Hey, Olalekan.

To remove the "underlines" from link(s), you can use the CSS text-decoration property.

a {text-decoration: none;}

Thanks Stuart, it worked! But I am sorry I don't understand it. Thank you for the fast response

Don't mention it!

Great info, Keri. 1 up for you!