This question has already been answered:
How to checkbox to apply red border and make a tick in red?
This question has already been answered:
How to checkbox to apply red border and make a tick in red?
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
I'll give you a "cool" tip, and then yourself, OK? ( http://jsfiddle.net/4qqjhtw7/ )
input { display: none; } input + i { /* some style */ } input:checked + i { /* some style */ } <label> <input type="checkbox" /> <i></i> Checkbox Label </label>
The only drawback is that for IE8 you need to script and hang the class "manually", from IE9 + it works great! For completeness, the script for backward browsers is: http://jsfiddle.net/vtdb8rh3/1/
:checked
- ferrariSource: https://ru.stackoverflow.com/questions/410270/
All Articles