title: I'm having problems with a CSS/HTML checkbox nested inside ul, li elements
body: <p>I'm having problems with HTML/CSS checkbox. I have code written to have a checkbox in a set of ul/li elements. The problem is if I click on the text of any of the li elements it crosses off the first ingredient on the list instead of crossing off the li element you clicked on. The checkbox itself works fine besides this hiccup. Any suggestions or ideas on whats going on and how I can fix this?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>input[type=checkbox] + label {
    color: black;
    font-style: normal;
  }
  input[type=checkbox]:checked + label {
    color: #ccc;
    font-style: italic;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul style="list-style-type: none;"&gt;
    &lt;li&gt;
      &lt;input type="checkbox" id="ossm" name="ossm"&gt;
      &lt;label for="ossm"&gt;2(6 ounce) filet mignon steaks&lt;/label&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;input type="checkbox" id="ossm" name="ossm"&gt;
      &lt;label for="ossm"&gt;1 teaspoon olive oil&lt;/label&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;input type="checkbox" id="ossm" name="ossm"&gt;
      &lt;label for="ossm"&gt;Coarse kosher salt and freshly ground black pepper&lt;/label&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;input type="checkbox" id="ossm" name="ossm"&gt;
      &lt;label for="ossm"&gt;1/2 cup red wine of your choice&lt;/label&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;input type="checkbox" id="ossm" name="ossm"&gt;
      &lt;label for="ossm"&gt;2 tablespoons of butter&lt;/label&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;input type="checkbox" id="ossm" name="ossm"&gt;
      &lt;label for="ossm"&gt;Oven proof skillet/ Cast-iron skillet&lt;/label&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;input type="checkbox" id="ossm" name="ossm"&gt;
      &lt;label for="ossm"&gt;Oven mitts!&lt;/label&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;input type="checkbox" id="ossm" name="ossm"&gt;
      &lt;label for="ossm"&gt;Thermometer&lt;/label&gt;
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>