Created
August 19, 2017 13:52
-
-
Save alireza-saberi/a574b70b9f559c83993931846719640e to your computer and use it in GitHub Desktop.
Changing the check box
This file contains hidden or 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
input[type="checkbox"] { | |
display:none; | |
} | |
input[type="checkbox"] + label span { | |
display:inline-block; | |
width:19px; | |
height:19px; | |
margin:-2px 10px 0 0; | |
vertical-align:middle; | |
background:url(check_radio_sheet.png) left top no-repeat; | |
cursor:pointer; | |
} | |
input[type="checkbox"]:checked + label span { | |
background:url(check_radio_sheet.png) -19px top no-repeat; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://webdesign.tutsplus.com/articles/quick-tip-easy-css3-checkboxes-and-radio-buttons--webdesign-8953