I am trying to add CSS to the following HTML form:
input[type=text],
input[type=password] {
transition: height 0.4s ease-in-out, width 0.4s ease-in-out, background 0.4s ease-in-out;
padding: 18px;
color: dimgray;
}
input[type=text],
input[type=password] :focus {
animation-name: smooth;
background-color: #FFD800;
color: black;
}
<form action="dashboard.php" autocomplete="off" method="POST">
<br><br>
<h2 align="center">Login</h2><br>
<input type="password" placeholder="Username" name="Username"><br><br>
<input type="password" placeholder="Password" name="Password"><br><br>
<input type="submit" value="Submit">
</form>
The CSS works for input type="text" but not input type="password". Please advise.
Thank you!
php, I've removed the tag.