How To Select The First Or Last Child Using CSS

Published Date Author: , Posted April 25th, 2011 at 11:33:51am

Use the :first-child or :last-child CSS Selectors

The :first-child pseudo class means “if this element is the first child of its parent”. :last-child means “if this element is the last child of its parent”. Note that only element nodes (HTML tags) count, these pseudo-classes ignore text nodes.

Click here for the original article on Quirksmode

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.