Last active
January 18, 2017 12:25
-
-
Save indreklasn/7bb52d24ef1a4f5f4a99da23e922d314 to your computer and use it in GitHub Desktop.
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
<label> | |
<input type="checkbox" name="terms"> | |
<span class="fake-checkbox"></span> | |
<span>Do you accept the terms?</span> | |
</label> | |
<style> | |
input[type="checkbox"] { | |
/* hide it somehow */ | |
} | |
input[type="checkbox"] + .fake-checkbox { | |
/* style when not checked */ | |
} | |
input[type="checkbox"]:checked + .fake-checkbox { | |
/* style when checked */ | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment