Last active
August 29, 2015 14:17
-
-
Save aarongustafson/eddda1f32ed102cedd86 to your computer and use it in GitHub Desktop.
Quantity Queries - some bits and bobs from Haydon Pickering’s article (http://alistapart.com/article/quantity-queries-for-css).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
li:nth-last-child(6):first-child, | |
li:nth-last-child(6):first-child ~ li { | |
color: green; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
li:nth-last-child(-n+6):first-child, | |
li:nth-last-child(-n+6):first-child ~ li { | |
/* properties here */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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