fancy checkboxes and radio buttons with css

A checkbox is a very basic necessary element of online form. I would also be worried about usability and accessibility. trovster & Mauricio: Thanks for pointing that out. Just put input and label (label after input) in a div with desired class. Change Radio button and checkbox background using plain CSS. The above image pretty much tells what we want to achieve. But as you are mentioning, the JS adds this extra classname automatically. Using CSS to enhance them, they can prevent users from submitting wrong data by pointing out which one is currently selected. The tutorial is easy to follow even if you are beginner. 'label_check c_on' : 'label_check c_off' : (inp.checked) ? Because today I am sharing a solution to this. And because you’re checking for className’s that contain exaclty ‘label_check’ the script won’t work. 'label_check c_off' : 'label_check c_on'; Oh, and is there a workaround for the behaviour that i’m experiencing; when you click, the onclick event-handler is called twice? Compatible browsers: Chrome, Firefox, Opera, Safari. 1281. ... Demo Image: Pure CSS Fancy Checkbox/Radio Pure CSS Fancy Checkbox/Radio. @Koen: Thanks for the remark, it seems that I copied generated source. fancy checkboxes and radio buttons