I am trying to add a custom image to a checkbox and I'm using this code:
input[type=checkbox] {
display:none;
}
input[type=checkbox] + label
{
background-image: url("../images/checkbox-bg.png") no-repeat 0 0;
height: 16px;
width: 16px;
display:inline-block;
padding: 0 0 0 0px;
}
The path is right but the image is not even showing.
I need the image to appear to the left of the label.
Can anyone see a problem on the code above please?
Thanks
Here is the HTML:
<input type="checkbox" value="1" /><label>The Label</label>
../images/checkbox-bg.png? What are its dimensions?