Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Came here to post this. This is very important and as a bonus, if you add some padding to the label the click area around the actual radio button becomes a bit larger.

You can combine nesting with for="id" to make sure you get complete compatibility.



I'm not sure about more recent versions of Safari, but I know this used to be the only way to get safari react to clicks on the label text.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: