I want image two to appear below image one when the mouse hovers over image one.
<ul>
<li>
<img id="img1" src="imageone.png">
<br>
<img id="img2" src="imagetwo.png">
</li>
</ul>
Any assistance would be greatly appreciated!
Currently, I've tried using this CSS but it doesn't seem to be working as expected:
#img2 {
display: none;
position: absolute;
}
#img1:hover + #img2,
#img2:hover {
display:block;
}