javascript - Input tag does not pick up width below 20px -
i need set width of input tag of type button 16px not taking width below 20px , not reduce size.
i want have button green check image on , size should below 20px unable using input tag. if take img instead of input tag, won't have same press effects of button.
any appreciated.
it obey sizes below 20px. need override innate padding on buttons proof:
a clear knowledge of what's default button required (ignore innermost box)
.tick { height:10px; width:10px; } .tick-20px { height:20px; width:20px } .btn-10px { padding: 0; width: 10px; height: 10px; }
<button class="btn-10px"></button> <button><img class="tick" src="http://www.freeiconspng.com/uploads/accept-tick-icon-12.png"></button> <button><img class="tick-20px" src="http://www.freeiconspng.com/uploads/accept-tick-icon-12.png"></button>
Comments
Post a Comment