What is the syntax for selecting the first element with a certain class? Please specify whether that method of selection is part of CSS3 or CSS2.1.
Try this
.testparent .test:first-child { color: red; } test test test
the first div 'test' has red color only.