I'm trying to create a webpage that contains images. However, I want all the images to be the same size and in the same format. I have the following CSS class which applies to a div and centers and sizes the image:
.img-container {
border: thin solid #C4C4C4;
border-radius: 10px;
overflow: hidden;
margin-left: auto;
margin-right: auto;
}
However, my images will have different dimensions throughout the page. Thus I want to have separate classes for just height and width, like so:
.200-200 {
width: 200px;
height: 200px;
}
When I apply both of these classes to the div as follows:
<div class="img-container 200-200"><img></div>
the height and width don't seem to apply. Is there anything I can do to have these classes separated?