I have run in to this irritating problem that I can't seem to get around: the HTML code looks like this
<form>
<lable><img src="/image.png"/></lable>
<input type="text" name="name" required/>
</form>
I seek to apply a filter to the lable's img
when there is focus on the input
. I have tried both with:
input:focus ~ lable>img{filter...}
input:focus + lable>img{filter...}
input:focus lable>img{filter...}
input:focus img{filter...}
But nothing seems to have an effect. Is it my localhost doing tricks or do I have to try something totally different? and if then what? Looking forward to hear from you wizards.