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

Trevor Wood
Trevor Wood
17,828 Points

Last-child and Last-of-type Quick Question

Hey guys, I'm trying to get the last ">" to be removed on the last piece of text. Any ideas? Here's an example link

Trevor Wood
Trevor Wood
17,828 Points

Ah okay, fixed it. Didn't realize that for the last one you needed ":after" as well.

Question - #navigation li:last-of-type { content: none;}

Solution - #navigation li:last-of-type:after { content: none;}

1 Answer

You might not care for this project, but keep in mind that CSS3 advanced selectors like :nth-child(), :last-child, :first-of-type, etc. are not supported in IE8 and earlier. :)

caniuse.com