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 Selectors Basic Structural Pseudo-Classes

how to ,target the li that is the last child of the ul and Set its border to none.

that's the only part i mess up on

1 Answer

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Christina,

To target a last child you would use :last-child.
As it's the last child of a li you would have no space between li and :last-child like so, li:last-child.
You would have ul as normal with a space before li:last-child and then have the open and close brackets with border: none; between them.

So I've almost put the whole answer together for you but have tried to explain each step.

Hope this helps.