For selecting the first and second children, you can use a single :nth-child()
pseudo-class like so:
ul li:nth-child(-n+2) a {
background: none repeat scroll 0 0 beige;
}
For selecting the first and second children, you can use a single :nth-child()
pseudo-class like so:
ul li:nth-child(-n+2) a {
background: none repeat scroll 0 0 beige;
}