Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29755

Email input is not working with valid selector

$
0
0

when I set the input type to email I can't use the valid selector to it in css and when I change the type to text it works perfectly

.span-name{
display:block;
}

input:focus ~ .span-name,
input:valid ~ .span-name{
    transform: translateY(-100%);
}
<input type="email" name = "email_config" required ><span class = "span-name">Email Configuration</span>

Viewing all articles
Browse latest Browse all 29755

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>