Skip to content

Instantly share code, notes, and snippets.

@aarongustafson aarongustafson/equal.css
Last active Aug 29, 2015

Embed
What would you like to do?
Quantity Queries - some bits and bobs from Haydon Pickering’s article (http://alistapart.com/article/quantity-queries-for-css).
li:nth-last-child(6):first-child,
li:nth-last-child(6):first-child ~ li {
color: green;
}
li:nth-last-child(-n+6):first-child,
li:nth-last-child(-n+6):first-child ~ li {
/* properties here */
}
li:nth-last-child(n+6),
li:nth-last-child(n+6) ~ li {
/* properties here */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.