Skip to content

Instantly share code, notes, and snippets.

@felixzapata
Created September 9, 2012 13:13
Show Gist options
  • Save felixzapata/3684220 to your computer and use it in GitHub Desktop.
Save felixzapata/3684220 to your computer and use it in GitHub Desktop.
personalización de radios mediante CSS. de @zmencay
input[type=radio] {
position: absolute;
height: 26px;
width: 26px;
opacity: 0;
filter: alpha(opacity = 100);
cursor:pointer;
}
input[type=radio] + label {
display:inline-block;
height:26px;
padding:0 0 0 30px;
background:url(../img/sprite-radio.png) no-repeat 0 bottom;
cursor:pointer;
}
input[type="radio"]:checked + label {
background-position: 0 top;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment