Is there an alternative for targeting elements using nth-child()
for older IE browsers?
Javascript (non-jquery) would suffice as well.
EDIT: Given additional libraries cannot be added to the page.
it sucks a little, but you can
ul > li {} /* first-child, overwritten by below */
ul > li + li {} /* second-child, overwritten by below, etc */
ul > li + li + li {}
ul > li + li + li + li {}
Repeat as necessary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With