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.
#form {
display: none;
}
#log:hover ~ #form {
display:block;
}
#form:hover {
display:block;
}
e.g: http://jsbin.com/etuxab/1/edit
Write it as -
#form{
opacity:0;
filter:alpha(opacity=0); /*For IE8*/
}
#log:hover ~ #form {
opacity: 1;
filter:alpha(opacity=100); /*For IE8*/
}
Post a Comment for "Can Pure Css Change Other Element On Hover If Its Not Child Element?"