0
Toggle button
I am developing toggle button you can see in my code but its does not change the position and and not a colour I am using pure css help me ? https://code.sololearn.com/WQEY3IKcY4S0/#
4 Réponses
+ 2
https://code.sololearn.com/WYg4D1YmWLOt/?ref=app
+ 1
Shubham Singh Bhadauriya translate by 38px (instead of 26px) to get the knob fully at right ;)
+ 1
no you can put it inside, but that make more sense to have it outside ^^
however, selectors must change if checkbox inside label:
input:checked + .switch
input:checked + .slider:before
0
I have a question? the input tag should always be out of label tag it is necessary ?