DEV Community

Discussion on: 3 Cool CSS Tricks to Impress Your Friends at Parties

Collapse
 
sharpseeer profile image
Aaron Throckmorton

If you nest the input element inside the label you don't need the for attribute anymore and the two are automatically linked. In theory, ymmv.

Collapse
 
phantas0s profile image
Matthieu Cneude

Ooh. That's a good idea. Thanks for that.