This seems like an obvious statement; styling should be done with CSS. But unfortunately in the case of checkboxes, there's basically no support for directly styling the checkbox. Because of that, I've seen several JavaScript implementations to chang...

Markdown supported · ⌘↵ to post
Jan Coenen
Hi Nathan, is this really the first comment on this excellent article? - I've played a little arround with the code, introduced a class .cbx for the input checkboxes and substituted label > input[type="checkbox"] in the styles with cbx. Works as expected so far, but now I want to eliminate the labels alltogether from the HTML. The whole thing doesn't work without labels and I don't understand why. They are not mentioned in my style section anymore.