DEV Community

How to create custom checkbox and radio inputs with CSS

Alex Carpenter on January 16, 2020

One major thing I forgot to outline in the screencast is ensuring there is a focused state applied to the custom indicator when the user has fo...
Collapse
 
cydstumpel profile image
Cyd

Cool, i usually use the label to create the checkbox with before and after pseudo elements. If you place the label after the input you can select it with input:checked + label and style it accordingly 😄