HTML CSS examples for SVG:Image
embed SVG image icon in input tag
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .right-inner-addon { position: relative; width: 200px; } .right-inner-addon input { padding-right: 30px; width: 170px; /* 200px - 30px */ } .right-inner-addon img { position: absolute; right: -10px; padding: 10px 12px; pointer-events: none;<!--from w w w .jav a 2s . c o m--> top: -8px; } </style> </head> <body> <div class="right-inner-addon pull-left col-lg-4"> <input type="text" class="form-control input-append"> <img role="img" src="https://www.java2s.com/style/demo/Firefox.png"> </div> </body> </html>