Ph: 786-539-6996

How to put an icon inside an input text element

Suppose we have this in the css file: #icon{ background-image:url(../images/icons/dollar.png); background-repeat: no-repeat; background-position: 2px 3px; } and now in the html file: <input id=”icon” style=”text-indent: 17px;” type=”text” placeholder=”Username” /> We can see the image in[…..]

October 10th, 2015 | aesio

Time Programmer Corp Since 2014 ®