HTML CSS examples for CSS Form:input
Make the cursor to become a pointer on the input file
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> label {<!-- w w w. j ava 2 s.c om--> cursor:pointer; } .fileSpan { cursor:pointer; margin-left:23pt; } .fileSpan input { display:none; } .fileSpan .button { background:Chartreuse; color:yellow; font-size:13px; margin-right:6px; padding:8px 21px; } </style> </head> <body> <span class="fileSpan"> <label for="photo"> <span class="button">Lorem ipsum d</span> </label> <input type="file" name="photo" id="photo"> </span> </body> </html>