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.

Revisions

  1. andershaig created this gist Aug 19, 2013.
    3 changes: 3 additions & 0 deletions example-3.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    li:nth-child(3n + 1) {
    background: red;
    }
    16 changes: 16 additions & 0 deletions example-3.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    <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>