input[type="checkbox"]:checked + span
does not work in IE. Actually the style rule is not even seen in the developers tool, when inspect element is done.
<label>
<input type="checkbox" name="Hello" id="Hello"/>
<span>Hello</span>
</label>
CSS:
input[type="checkbox"]:checked + span {
font-weight:bold;
}
When the checkbox is checked, I am trying to make the span bold. This is working in Chrome, but not in IE8. Also, o verify why its not working, I was trying to inspect the element, I did find this style rule there. Hope this is clear.
Is there any other solution to this?