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 Let's Practice Selectors!

eslam said
PLUS
eslam said
Courses Plus Student 6,734 Points

text decoration from navigation links

<header> <!-- LOGO --> <img src="logo.png" alt="Bookworm"> <nav> <ul> <li><a href="#">About</a></li> <li><a href="#">Articles</a></li> <li><a href="#">News</a></li> <li><a href="#">Get in Touch</a></li>
</ul> </nav> </header>

im trying to edit the text-decoration but its not working just want to check if i have the correct css :

nav ul li { text-decoration: none; }

2 Answers

Ryan Navarro
Ryan Navarro
13,889 Points

Adding the anchor element to the targeted tags should work. nav ul li a { text-decoration:none;}.