I am trying to make an image appear over options of a radio button ( radio button is hidden by CSS) PLs check the following js fiddle
[a link] (https://jsfiddle.net/testingmilan56/rqr4dt8h/)
ul {
list-style: none;
}
li {
display: inline-block;
margin-right: 15px;
}
input {
visibility:hidden;
}
label {
cursor: pointer;
}
input:checked + label {
background:#fff000;
}
<ul>
<li>
<input type='radio' value='1' name='radio' id='radio1'/>
<label for='radio1'>Value 1</label>
</li>
<li>
<input type='checkbox' value='2' name='radio' id='radio2'/>
<label for='radio2'>Value 2</label>
</li>
<li>
<input type='radio' value='3' name='radio' id='radio3'/>
<label for='radio3'>Value 3</label>
</li>
</ul>
I also want to control the position of the image .I know its possible to do with z-index ..please help .A slight modification is required .