Does css include the ability to change another element to hover . Because I'm struggling a bit with a simple task. In this example, I want the form appear when you hover the <a> tag .
<a id="log" href="#">text</a> <form id="form" action="" method="post"> <input type="text" name="id"/> <input type="submit" name="submit"/> </form>
If css looks something like this:
#form{ opacity:0; } #log:hover ~ #form { opacity: 1; }
or
#log:hover + #form { opacity: 1; }
It really drives me crazy: / Any suggestions, how can I make it work? I do not want to use javaScript if there is another way.
source share