HTML CSS examples for CSS Form:input
Style an upload input using CSS
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .button {<!-- w ww.j a va 2s . c o m--> width:48px; height:20px; cursor:pointer; text-indent:-10000px; border:none; background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png'); } </style> </head> <body> <div class="upload"> <input type="file" name="upload" class="button"> </div> </body> </html>