Can anyone help me troubleshoot an issue I am facing with a white pixel line that appears at the bottom of every image within the "div class gallery" element? The white line seems to only show up when the mouse hovers over the images, especially since I have added a transform element for hover effects.
It's worth noting that these images are specifically included in classes "gallery" and "photo", and not any other class.
Below is the code snippet:
div.photo {
height: 2rem;
transition: transform .2s;
}
.photo:hover {
transform: scale(0.9);
cursor: pointer;
box-shadow: 15px 15px 15px;
}
.gallery {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-gap: 2em;
}
<div class="gallery">
<div class="photo"><img src="https://source.unsplash.com/300x200?v=1"></div>
<div class="photo"><img src="https://source.unsplash.com/300x200?v=2"></div>
<div class="photo"><img src="https://source.unsplash.com/300x200?v=3"></div>
</div>