<div class="input-container">
<label>Input Label</label>
<input />
</div>
This is the html, I want to resize and reposition the label test when the input focus is active
my css looks something like this
.input-container > input:focus .input-container > label {
color: green;
}
For this example, is there a way to change the label text color to green when the input is focussed? Thank you, I know this is easy with JS, I am looking for an all css solution though