Hi I have a problem with some css code. I created simple jsfiddle, so I hope you will understand my problem.
Example:
<div id="main">
<div id="one">
<p>Hover to hide div below</p>
</div>
<div id="two">
<p>hide me please</p>
</div>
</div>
<div id="main">
<div id="one">
<p>Hover to hide div below (this works)</p>
<div id="two">
<p>hide me please</p>
</div>
</div>
</div>
CSS
#one{
background-color:green;
color:white;
height:40px;
}
#two{
background-color:red;
color:white;
height:40px;
display:in-line;
}
/* Help please */
#one:hover > #two {
display:none;
}
#main #one:hover > #main #two {
display:none;
}
Thank you and if someone can edit my post and make better title I will be grateful. My English is weak.