I want to increase the size of an image so that it is the same size as other images. I also want it to expand as it is hovered over, without changing the size.
heres what my code looks like:
.samples {
width: 80%;
margin: auto;
text-align: center;
padding-top: 50px;
}
.samples-col {
flex-basis: 32%;
border-radius: 10px;
margin-bottom: 30px;
position: relative;
overflow: hidden;
}
.samples-col img {
width: 100%;
}
<div class="samples-col">
<img src="images/sample-1.png">
<div class="layer">
<h3>lovely </h3>
</div>
</div>
<div class="samples-col">
<img src="images/sample-2.png">
<div class="layer">
<h3>pretty </h3>
</div>
</div>
<div class="samples-col">
<img src="images/sample-3.png">
<div class="layer">
<h3>amazing </h3>
</div>
</div>
what should i add ?