<div id="content">
<div class="one">
<div class="two"></div>
</div>
<div class="three"></div>
</div>
#content {
display: block;
width: 900px;
height: 500px;
border: 3px solid black;
position: relative;
}
.one {
position: absolute;
bottom: 0;
left: 50px;
display: block;
width: 150px;
height: 150px;
background: red;
}
.two {
position: absolute;
top: -300px;
display: none;
width: 300px;
height: 300px;
background: green;
}
.three {
position: absolute;
top: 50px;
right: 250px;
display: none;
width: 300px;
height: 300px;
background: blue;
}
.one:hover .two{
display: block;
}
.one:hover ~ .three{
display: block;
}
.three:hover {
display: block;
}
.three:hover ~ .two {
display: block !important;
} /* А вот здесь уже не выходит */
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.