Create a gist now

Instantly share code, notes, and snippets.

Untitled
ul {
list-style: none;
padding: 0;
margin: 0;
}
input:checked + label {
background: yellow;
}
<ul>
<li class="choice"><input type="radio" name="blah"><label for="">vanilla</label></li>
<li class="desc">real vanilla with extra cheese and onions</li>
<li class="choice"><input type="radio" name="blah"><label for="">almond</label></li>
<li class="choice"><input type="radio" name="blah"><label for="">mint</label></li>
</ul>
// alert('Hello world!');
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment