Code: Select all
<form>
<input type="checkbox" name="fail1" value="1">
</form>
Code: Select all
input[type="checkbox"] {
-webkit-appearance: none;
width: 30px;
height: 30px;
background-color: red;
}
input[type="checkbox"]:checked {
background: url('[r:getStateImage("Dying", 30)]');
}
If I set the style attribute of the checkbox in the form that image will be displayed, just not from the CSS. This will display my image:
Code: Select all
<form>
<input style="-webkit-appearance: none; width: 30px; height: 30px; background: url('[r:getStateImage("Dying", 30)]');" type="checkbox" name="fail1" value="1">
</form>