CSS pseudo-classes

1-8iebmv82iubj7jyyiyx_aa

Great and visual explanation of CSS pseudo-classes such as :only-of-type, :first-of-type, :last-of-type, :nth-of-type(number/an + b/even/odd), …

Embedded above is the visual for the selector:

a:nth-last-of-type(1) {  border: 2px solid black; }

How CSS pseudo-classes work, explained with code and lots of diagrams →

Published by Bramus!

Bramus is a Freelance Web Developer from Belgium. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.