CSS radio button
hello guys plz i need help with this ,how can i do it with the best solution
3 Replies
I recognize it from frontend mentor lol, I did it as well. I used
<input type="range" min="0" max="2" />
and then used ::before
for that circle inside.
it's good way to do that since this way you can drag it, click it, and even select it with tab
but you should wrap that input in label
and put ::before
on that label, since you can't put pseudo elements on inputPlease read #How To Ask Good Questions. Share your code. What have you tried? What isn't working? What errors are you getting? This channel is for help with code, not a place to ask others to do the work for you
tnx