64x64 icon dark hosting
Choose a hosting plan here and get a free year's subscription to Tuts+ (worth $180).

Quick Tip: Work Backward to Understand Structural Pseudo Classes


Start a hosting plan from $3.92/mo and get a free year on Tuts+ (normally $180)

Have you ever seen those scary looking CSS structural pseudo classes, like li:nth-child(4n+2)? Can you enunciate exactly what that means? If not, don't worry; I'll teach you how easy this is to understand -- once you work backward!

See What I Mean?

The key to figuring these things out is to work from right to left! Now it's easy to understand. If you enjoyed this video quick tip, don't forget that we have a seemingly never-ending span of video quick tip on Nettuts+ - ranging from .NET, to CSS, to JavaScript!