16 ms·
It could be done using `input:checked + sibling` selector e.g. like this: https://jsfiddle.net/6bgemn0s/ https://jsfiddle.net/6bgemn0s/ For something fancier i
by pawelk 8y ago
It could be done using `input:checked + sibling` selector e.g. like this: https://jsfiddle.net/6bgemn0s/ https://jsfiddle.net/6bgemn0s/
For something fancier it would be possible to style a label with appropriate for="" attribute and hide the checkbox completely, then even apply some transitions: https://jsfiddle.net/6bgemn0s/1/ https://jsfiddle.net/6bgemn0s/1/
- hokus 8y agohttps://jsfiddle.net/gaby_de_wilde/ye95zcao/29/ https://jsfiddle.net/gaby_de_wilde/ye95zcao/29/