Design comparison
Solution retrospective
I was wondering if I can make a layout using only CSS so that by clicking on the internal input I am able to activate the label, thus selecting the input radio. In the end, however, I just used JS for this, but it seems an interesting topic.
<input type="radio" name="tip" id="tip6">
<label for="tip6">
<input type="number">
</label>
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord