I am looking for guidance on how to achieve a similar effect to the one shown here:
Specifically, I want to create a box with images that appears below a button when the user hovers over it.
The box should remain visible as long as the user's mouse is on either the box or the button.
Currently, my code is functioning but lacks the inclusion of images:
CSS
.tooltip{
position: relative;
}
.tooltip:hover:after{
background: #000000;
top: 30px;
color: #FFFFFF;
padding: 10px 10px;
content: attr(id);
left: -90px;
position: absolute;
z-index: 98;
width: 200px;
}
HTML
<button class="tooltip" id="Select an image<img src='a.png'/><img src='b.png'/><img src='c.png'/><img src='d.png'/>" style="margin-left:160px;">Select</button>
EDIT: Updated Question