No, Actually it's working but you are not using the right property
label+input {
background-color: red;
/* Doesn't work */
}
in this code you are trying to give background-color: red;
to a checkbox
but you can't give background-color
to a checkbox.
for example if you will try this:
input {
background-color: red;
}
this will won't work too.
you are using right selector but the wrong property for a checkbox for example try this.
label+input {
height:70px;
}
now the height of checkbox will change.
I hope you got my point.
Please feel free to ask if not.