How nth-child Works

Posted on February 8, 2010 by Fernando Trasviña

Categories: Dev News

There is a CSS selector, really a pseduo-selector, called nth-child. Here is an example of using it: ul li:nth-child(3n+3) { color: #ccc; } What the above CSS does, is select every third list item inside unordered lists

View original post here:
How nth-child Works

If you enjoy this post, please share it.
  • Digg
  • Reddit
  • DZone
  • del.icio.us
  • StumbleUpon
  • Technorati
  • LinkedIn
  • TwitThis
  • E-mail this story to a friend!

No Comments »

No Comments yet

Leave your comment
Copyright © 2009 Elasticss.com. All rights reserved.
Made with Elastic