materialize css form validation example
Example 1: materialize css form file input
<form action="#">
<div class="file-field input-field">
<div class="btn">
<span>File</span>
<input type="file">
</div>
<div class="file-path-wrapper">
<input class="file-path validate" type="text">
</div>
</div>
</form>
Example 2: fix materialize form label not working
input:-webkit-autofill + label {
font-size: 0.8rem;
transform: translateY(-140%); }