Is there a way to style a checkbox or radio button with pure css i.e. class="newstyle" without jQuery? I've been searching the web, and I wondering if there is a way to achieve this with only class="" attribute. Here's an example: http://www.filamentgroup.com/examples/customInput/
EDIT: My current way of achieving this:
<div class="styled-checkbox">
<input type="checkbox" id="checkbox1" value="1" />
<label for="checkbox1"><span></span>Test</label>
</div>
However, not sure if this is the correct way to achieve this, from a compatibility perspective, in addition, the div needs a pre-set width by default, if auto it will fill the DOM.