There is such a layout
<input type="file" name="userfile" size="20" class="form-control"> But for some reason it shows in Russian although the site is in English.
How to make it show in English? Here is an example.
But for some reason it...">
There is such a layout
<input type="file" name="userfile" size="20" class="form-control"> But for some reason it shows in Russian although the site is in English.
How to make it show in English? Here is an example.
input[type='file'] is one of the most tricky things in terms of style and processing.
The browser practically does not allow to customize it (for obvious reasons).
The way of the samurai is to hide the original element (glory to Allah, even though the opportunity to hide is left) and bring out your own, when clicked on which, we launch the hidden element:
.uploadButton { display: block; width: 100px; background: #3df; padding: 10px; color: #FFF; font-size: 16px; font-weight: bold; font-family: Tahoma; text-align: center; border-radius: 10px; cursor: pointer; } .uploadButton:hover { background: #3ce; } .uploadButton div{ color: #00097d; } <label for="uploadbtn" class="uploadButton">Загрузить файл<div></div></label> <input style="opacity: 0; z-index: -1;" multiple type="file" name="upload" id="uploadbtn" onchange='document.querySelector(".uploadButton div").innerHTML = Array.from(this.files).map(f => f.name).join("<br />")' /> Source: https://ru.stackoverflow.com/questions/632997/
All Articles