I'm trying to style my checkboxes, without using images. I'm not above using javascript and events, but I view that as a last resort. And yes, I'm aware that a lot of people are asking about checkbox styling in here, but I didn't find anyone who had asked this particular question, or answers which seemed to solve the problem.
I've had a look at
http://www.inserthtml.com/2012/06/custom-form-radio-checkbox/
which is a really good tutorial, accomplishing custom checkboxes solely through css. However, in that example, the designer is faced with a trade-off:
Either the solution basically only works in chrome, or it becomes impossible to add labels which serve as extensions to the click-able area. The reason for this is that to obtain cross-browser compatibility, each checkbox is given an empty label, and all styling is applied to checkbox+label. The result is that if I add text to the label, it winds up inside the checkbox.
Does anyone know of a way to get both cross-browser functionality, as well as functional labels? The best solution I can come up with is adding the onclick-event to the label by hand? I really like having functional labels, as I think it's more touch-friendly.