Join InMotion Hosting for $3.49/mo & get a year on Tuts+ FREE (worth $180). Start today.

Quick Tip: Work Backward to Understand Structural Pseudo Classes


Want a free year on Tuts+ (worth $180)? Start an InMotion Hosting plan for $3.49/mo.

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!