input[type="checkbox"] { position:absolute; clip: rect(0,0,0,0); clip: rect(0 0 0 0); } input[type="checkbox"] + label::before { content: url("/Style%20Library/Images/cbox.png"); /* z-index: -999; */ /* opacity: 1; */ } input[type="checkbox"]:checked + label::before { content: url("/Style%20Library/Images/cbox1.png"); }
<input type="checkbox" id="chk"> <label for="chk">Male</label>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)