Last active
December 21, 2015 07:08
-
-
Save awkale/6268712 to your computer and use it in GitHub Desktop.
styling radio buttons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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