I\'d like to select the first two list items in an unordered list. I can select the first item thus:
ul li:nth-child(1) a { background: none repeat scrol
For selecting the first and second children, you can use a single :nth-child() pseudo-class like so:
:nth-child()
ul li:nth-child(-n+2) a { background: none repeat scroll 0 0 beige; }