I am attempting to use CSS to display another div within my main div, but positioned from the bottom of the main div rather than as a block as I am currently testing with my code.
HTML
<div id="main">
<a href="#"><img src="https://www.google.com/images/srpr/logo11w.png"/></a>
<div id="hidden">
<h2><a href="">Link1</h2>
<h2><a href="">Link2</h2>
</div>
</div>
CSS
#main {
width: 540px;
border: 1px solid #eee;
text-align:center;
}
#hidden {
display:none;
border: 4px solid #eee;
}
#main:hover > #hidden {
display:block;
}
I would like to achieve a layout similar to the image linked below: https://i.sstatic.net/Q41JG.png