Make the cursor to become a pointer on the input file - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Make the cursor to become a pointer on the input file

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials