Created
April 3, 2015 17:30
-
-
Save anonymous/99264f20a402ee819c8a to your computer and use it in GitHub Desktop.
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
<div data-grid="4"> | |
<div data-span="4"></div> <!-- Select --> | |
<div data-span="1"></div> | |
<div data-span="1"></div> | |
<div data-span="1"></div> | |
<div data-span="1"></div> <!-- Select --> | |
<div data-span="2"></div> | |
<div data-span="1"></div> | |
<div data-span="1"></div> <!-- Select --> | |
</div> | |
Write a CSS selector that matches [data-span] elements whose cycling | |
sibling sum of the [data-span] attribute value is equal to the parent's | |
[data-grid]value. In this case its the first, fifth, and last | |
[data-span] element. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment