Created
October 23, 2011 11:36
-
-
Save EvanLovely/1307264 to your computer and use it in GitHub Desktop.
Targeting specific numbered elements with CSS
This file contains hidden or 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
/* Works in IE7+ */ | |
ul li:first-child + li + li { | |
}/* Targets the 3rd list item */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Warning: for it to work in IE7 there can be no comment before the first child as it counts that as the first child.