DEV Community

Tahir Rafique
Tahir Rafique

Posted on

Change the default text of input type='file'.

<input type="file" name="uploadfile" id="img" style="display:none;"/>
<label for="img" class='tahir'> upload file</label>

<style>

.tahir{
  background-color: blue;
  padding: 10px 20px;
  border-radius: 20px;
}

</style>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)