Skip to content

Instantly share code, notes, and snippets.

@bingeboy
Created May 23, 2013 17:13
Show Gist options
  • Save bingeboy/5637724 to your computer and use it in GitHub Desktop.
Save bingeboy/5637724 to your computer and use it in GitHub Desktop.
CSS Form Elements
/* Custom radio input */
input[type="radio"] {
position:absolute;
clip: rect(0,0,0,0);
clip: rect(0 0 0 0);
}
input[type="radio"] + label::before {
content: url('radio.png');
}
input[type="radio"]:checked + label::before {
content: url('radio-checked.png');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment