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

How do i use text-underline to remove the underlines? I'm looking through the videos and I'm not sure how this works.

I am stuck on a code challenge for CSS.

2 Answers

Erik McClintock
Erik McClintock
45,783 Points


The property that you're looking for is actually 'text-decoration', and it has a value of 'underline'. In the first task of this challenge, they want you to remove the underlines from all the links on the page, so you would want to write the following:

/* general selector for all the anchor tags on the page */
a {
    /* set the text-decoration property to have a value of none in order to remove the underline */
    text-decoration: none;

I hope this helps to clear things up a bit!


It helped and I finished the challenge. Thanks!

Erik McClintock
Erik McClintock
45,783 Points

Great! Glad to hear it :)

Happy coding!