I am encountering an issue with the following code:
.input {
display: flex;
flex-direction: column;
border: 1px solid #000;
height: 50px;
justify-content: flex-end;
}
.input > * {
padding: 5px;
}
#login {
visibility: hidden;
height: 0px;
transition: .2s
}
#login:active {
visibility: visible;
height: 10px;
}
<div class="input">
<label for="login" id="login1">Login</label>
<input type="text" id="login">
</div>
My aim is to have the input display after clicking on the label without using JavaScript. Currently, it only works when I hold the mouse button down. Is there a way to achieve this behavior upon a simple click?