I've been trying to line up my images to the same size, using CSS and HTML tags, currently this is what I've come up with, there are just a few pictures that don't seem to follow the directions. I have tried different ways to describe the width (e.g: vw, hf, px or %), though those tags don't seem to completely sort the problem out here. The width is alright, yet the height on some pictures is not. All pictures have different original sizes, only the last 3 pictures are exactly the same original size.
I have definitely tried finding the same issue asked elsewhere on the internet, but I haven't found anything related yet.
Any ideas on how to fix this, without having to manually edit all the pictures to the thumbnail size?
This is what the images currently look like.
.main-container {
max-width: 60%;
max-height: 44.44%;
margin-left: 19.6875%;
margin-top: 20%;
padding: 10px;
overflow: hidden;
background-color: #FEF39F;
}
.imgclass {
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
max-width: 13.5vw;
max-height: 15hz;
}
img.imgclass:hover {
box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}