I am facing a challenge with my thumbnail grid. I want to enlarge an image slightly without disrupting the layout of the grid.
I have experimented with different approaches, first focusing on displaying the enlarged image and then on maintaining the fluidity of the grid.
#thumbnail-grid {
background-color: #1F1F1F;
height: 450px;
}
#thumbs {
max-height: 400px;
overflow-y: auto;
position: relative;
}
img {
float: left;
margin: 1px 1px 1px 1px;
z-index: 10;
}
.ontop {
z-index: 200;
width: 80px;
height: 50px;
position: absolute;
}
<div id="thumbnail-grid">
<div id="thumbs">
<img class="thumbnail" src='http://oleaass.com/wp-content/uploads/2014/10/Random-truths18.jpg' alt="arrow" height="40" width="60'>
<... (truncated for brevity)... gt;
</div>
</div>
The issue I'm encountering is that when trying to enlarge the last image in my actual grid, it overlaps onto the right side and ends up in the first row.
Could someone provide some advice or recommend a CSS resource to help me tackle this problem effectively?