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

[SOLVED] CSS :last-child selector doesn't apply

Sorry, I don't have access to the code right now, these screenshots are from earlier today, maybe I should have waited til tomorrow to post with proper code included but I can't get this off my mind!

Here are the images at least:

https://embed.gyazo.com/5de30862949d30608fec5c93ce77e119.png https://embed.gyazo.com/087555d5e0664619049b5bd9f4b8a802.png

You can see on the image where the selector is /* NOT WORKING */

You can see on the other image where the yellow marks are, the changes should be made.

EDIT: I misunderstood the concept of children. This is how the code is supposed to be!

sidebar-links-box .card-block .sidebar-links-item::last-child ....

I think your problem is you use two "::" insted of one ":"

try:

sidebar-links-box .card-block:last-child,

sidebar-news-box .card-block:last-child{

border:none;

}

I think that will slove your problem :)

Stipe Stipic: No that is not the problem, but you are correct by convention it should be just one semicolon!