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 Layout Techniques Float Layout Mobile First Layout

Elena Paraschiv
Elena Paraschiv
9,938 Points

.col:last:child

Is there any difference between .col:last:child

and

.col:last-child ?

2 Answers

Mark Cuda
Mark Cuda
6,428 Points

Howdy! :last:child is not proper syntax. The only class you need to worry about in this case would be:

:last-child

:)

If you're looking at code with that in it (:last:child), it should be a typo.

THIS ARTICLE on CSS Tricks is really great for showing the pseudo classes available in an easy to read format! Hope it helps!

Elena Paraschiv
Elena Paraschiv
9,938 Points

Gooood. And thanks for the material. Happy coding Mark! :)

Mark Cuda
Mark Cuda
6,428 Points

No problem! Happy coding to you as well!