Mark L. Reyes

nth:child CSS Selectors

CSS3 and IE7/8 versions of nth:child CSS selections,


/* standard nth */
ul.menu li:nth-child(3)
{
    /* styles for the 3rd LI */
}

/* IE nth */
ul.menu>li + li + li 

Thanks to, Michael Barrett @ Abouthalf.com

Exit mobile version