The goal is to affect the Parent div box using :hover via child div box.
This is what I've Done and it doesn't work. HTML:
<body>
<div id=Parent-box>
<div id=Child-box></div>
</div>
</body>
CSS:
#Parent-box{
width: 750px;
height: 400px;
margin-left: auto;
margin-right: auto;
margin-top: 25px;
border: 1px solid #000;
position: relative;
}
#Child-box{
z-index: 1;
width: 700px;
height: 350px;
margin-left: 25px;
margin-top: 25px;
position: absolute;
background: #339;
border: 1px solid #000;
transition: all 200ms linear;
}
#Child-box:hover{
height: 600px;
transition: all 200ms linear;
}
#Child-box:hover + #Parent-box{
height: 650px;
transition: all 100ms linear;
}
does anyone know if this is possible?
thanks :)