<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div style="height: 35px; width: 400px; position: relative"> <input type="text" style="height: 35px; width: 370px; padding-right: 30px"> <span style=" height: 16px; width: 16px; position: absolute; right:0; top: 10px; background-image: url(i_name.jpg)"></span> </div> </body> </html>