I am trying to make a cool looking checkbox.I got a checkbox followed by a hidden input then a label.I am trying to change the font weight of the label when the checkbox is checked.
<html>
<head>
<style type="text/css">
input[type="checkbox"]:checked + input[type="hidden"] + label{
font-weight:bold;
}
</style>
</head>
<body>
<div>
<input type="checkbox" id="1"/>
<input type="hidden"/>
<label for="1">My Label</label>
<div>
</body>
</html>
But I can't make it work on Chrome.But if I try this on jsfiddle with chrome it works!!!!!
Here is the Fiddle
Any ideas?