Skip to content

Instantly share code, notes, and snippets.

@benytocarlo
Created May 19, 2013 03:58
Show Gist options
  • Save benytocarlo/5606621 to your computer and use it in GitHub Desktop.
Save benytocarlo/5606621 to your computer and use it in GitHub Desktop.
<style>
input[type=checkbox]:before { content:""; display:inline-block; width:12px; height:12px; background:red; }
input[type=checkbox]:checked:before { background:green; }
</style>
<input type="checkbox" id="chk1" /><br/>
<input type="checkbox" id="chk2" /> <label for="chk2">Some label</label>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment