Revision: 61499
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 18, 2012 16:38 by xcsteve99
Initial Code
div#test p:first-child {text-decoration: underline;} div#test p:last-child {color: red;}
Initial URL
http://www.quirksmode.org/css/firstchild.html
Initial Description
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.
Initial Title
CSS Pseudo Classes
Initial Tags
Initial Language
CSS