Skip to content Skip to sidebar Skip to footer

Can Pure Css Change Other Element On Hover If Its Not Child Element?

Does css include possibility to change other element on hover. Because I'm kinda struggling with simple task. For this example, I want form to appear when you hover tag.

Solution 1:

Solution 2:

Write it as -

#form{
    opacity:0;
    filter:alpha(opacity=0); /*For IE8*/
}

#log:hover ~ #form {
    opacity: 1;
    filter:alpha(opacity=100); /*For IE8*/
}

Working Demo

Post a Comment for "Can Pure Css Change Other Element On Hover If Its Not Child Element?"