Can someone help me change the border bottom color of my input to blue in the following HTML code:
.inputBox input:focus ~ input,
.inputBox input:valid ~ input{
border-bottom: 1px solid #0000cd;
}
<div class="inputBox">
<input type="text" name="name" id="name" autocomplete="off" required autofocus>
<label class="noselect" for="name"> <i class="fas fa-user"></i> Name :</label>
</div>
Also, how can I achieve the same effect for my label element?
This is my first time asking a question and I hope I have provided enough information. Thank you in advance!