Skip to content

Instantly share code, notes, and snippets.

@awkale
Last active December 21, 2015 07:08
Show Gist options
  • Save awkale/6268712 to your computer and use it in GitHub Desktop.
Save awkale/6268712 to your computer and use it in GitHub Desktop.
styling radio buttons
label {
display: block;
}
input {
margin-right: 6px;
}
input[type=radio]:after {
content: '';
display: inline-block;
background-color: #ffffff;
border: 1px solid #cccccc;
height: 8px;
width: 8px;
border-radius: 50%;
}
input[type=checkbox]:after {
border-radius: 50%;
}
input[type=radio]:checked:after {
background: #E76F00;
border-color: #cccccc;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment