html - Add specific image to radio button -


input[type=checkbox]:not(old) + label, input[type=radio   ]:not(old) + label{   display      : inline-block;   margin-left  : -28px;   padding-left : 28px;   background   : url('image.png') no-repeat 0 0;   line-height  : 24px; }  <input id="radio1" class="spec" type="radio" name="h" value="1" ><label for="radio1"><span><span></span></span>1</label><br />         <input id="radio2" type="radio" name="h" value="2"><label for="radio2"><span><span></span></span>3</label><br/>         <input id="radio3" type="radio" name="h" value="3"><label for="radio3"><span><span></span></span>5</label><br/> 

i want add different background image 1 of radio buttons. tried with

.spec {     background: url('image2.jpg') no-repeat 0 0; } 

but no result.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -