+ 3

Why this👉~👈css is not working inside form element? And which term is used to call it?

<form> <input> </form> <div>visible</div> <style> input:focus ~ div{ visibility:collapse; } </style>

23rd May 2020, 3:12 PM
Absolute Zero ϟ
Absolute Zero ϟ - avatar
1 Answer
+ 5
The next sibling must have same parent https://code.sololearn.com/W8Cp1tXTJJ0p/?ref=app
23rd May 2020, 3:17 PM
Gordon
Gordon - avatar