Hallo,
ich hab ein paar Schwierigkeiten meine Checkbox zu stylen, da mir ne span fehlt :( Ich hatte nähmlich folgendes gefunden:
CSS:
Code
.myCheckbox input {
display: none;
}
.myCheckbox span {
width: 20px;
height: 20px;
display: block;
background: url("link_to_image");
}
.myCheckbox input:checked + span {
background: url("link_to_another_image");
}
Alles anzeigen
HTML:
Code
<label for="test">Label for my styled "checkbox"</label>
<label class="myCheckbox">
<input type="checkbox" name="test"/>
<span></span>
</label>
Leider fehlt bei meinem HTML diese span, die nach dem input kommt:
HTML:
Code
<label class="selectit">
<input ffpdm="95ybi62pplw599txuf5y3u" class=" wpuf_category_836" value="53" name="category[]" id="in-category-53" type="checkbox">
Controller-Unterstützung
</label>
Daher geht das nicht:
CSS:
Ich hoffe ihr könnt mir weiterhelfen.