Skip to content

Instantly share code, notes, and snippets.

@andershaig
Created August 19, 2013 18:55
Show Gist options
  • Save andershaig/6272695 to your computer and use it in GitHub Desktop.
Save andershaig/6272695 to your computer and use it in GitHub Desktop.
If the following CSS was applied, which lines would be affected?
li:nth-child(3n + 1) {
background: red;
}
<div class="shopping list">
<ul>
<li>Ham</li>
<li>Eggs</li>
<li>Cheese</li>
<li>Cups</li>
<li>Wool Blanket</li>
<li>Veggies</li>
<li>Steak</li>
<li>Birthday Cake</li>
<li>Chicken</li>
<li>Ice Cream</li>
<li>Nacho Chips</li>
<li>Salso</li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment