Nth type Selectors

  • Share
  • CevherShare
  • Share

:nth-child(n)
:nth-last-child(n)
:nth-of-type(n)
:nth-last-of-type(n)

Target multiple targets
:nth-child(an+b)
The argument(an+b)determines the ranges of elements targeted.

:nth-child(even)
:nth-child(odd)
The keywords “even” and “odd” can be used to target all even or odd numbered children within a parent.

Share

Published by Thomas Strandebø

My skills: CSS/CSS3, HTML/HTML5, Javascript, jQuery, LESS & SASS, CMS: Joomla developer, Dreamweaver, Illustrator, Photoshop, Flash, Flash Catalyst CS5, QuarkXpress, InDesign, Bridge, Adobe Acrobat, CasMate Pro and Corel Draw.

Join the Conversation

16 Comments

Leave a comment

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

 characters available

Code*:

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

Tweeter button Facebook button Flickr button

Embed Plugin created by Jake Ruston's Wordpress Plugins - Powered by Sabian.

Antispam Plugin created by Jake Ruston - Sponsored by Weber Grill Parts.