I'm trying to style a checkbox with CSS, but my styles are not working, can someone help me?
I'm checking the checkbox using javascript, hence the "onclick: return false" code
input[type=checkbox] {
margin: 5px 0 0 0;
padding: 0;
}
.checkbox:checked {
border: 2px solid #000;
background-color: #000;
height: 20px;
width: 20px;
}
<input type="checkbox" id="checkbox1" class="checkbox" onclick="return false"/>
<label for="checkbox1" class="deactivated labels" id="label1">Lowercase letters</label>
onclick="return false"prevents that from happening. Is that was you mean by "not working", or - what exactly?