Simply include the following code snippet in your CSS:
.card {
max-height: 155px;
min-height: 155px;
padding: 10px;
box-sizing: border-box;
}
If you wish to vertically align the contents, add this additional CSS:
.card {
max-height: 155px;
min-height: 155px;
padding: 10px;
box-sizing: border-box;
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
Don't forget to use Autoprefixer for better browser compatibility.
Here is a production-ready version of the CSS with Autoprefixer applied:
.card {
max-height: 155px;
min-height: 155px;
padding: 10px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -moz-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-moz-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
If you need to adjust spacing after images, you can utilize the following CSS rule:
.card>img { margin-bottom: -10px; }