Unfortunately, there is no easy way to resolve the same block height issue because listing content height may be different ( as it also depends on the title, attributes, rating, etc. ).
For those that might be looking for a solution I think I came up with one. I’m no CSS expert so feel free to modify it to your liking and post here if you come up with something better.
@media only screen and (max-width: 600px) {
article.hp-listing-category.hp-listing-category--view-block {
height: auto;
padding-top: 15%;
}
}
@media only screen and (min-width: 601px) and (max-width: 767px) {
article.hp-listing-category.hp-listing-category--view-block {
height: 20rem;
padding-top: 35%;
}
}
@media only screen and (min-width: 768px) and (max-width: 900px) {
article.hp-listing-category.hp-listing-category--view-block {
height: 20rem;
padding-top: 75%;
}
}
@media only screen and (min-width: 901px) {
article.hp-listing-category.hp-listing-category--view-block {
min-height: 20rem;
max-height: 24rem;
padding-top: 75%;
}
}
@media only screen and (min-width: 600px) and (max-width: 900px) {
.hp-listing-category__name {
font-size: 1.35rem;
}
}
/* Remove listing category description */
.hp-listing-category__description {
display: none;
}
I’m working on customizing my HivePress site and I’m trying to make each listing column the same height, regardless of the content inside. Here’s my setup:
I have listings displayed in a grid layout, with each listing contained in a .hp-grid__item element. I tried setting display: flex on the parent container (.hp-grid) and height: 100% on each .hp-listing item to make them equal in height, but it’s not working as expected. Here’s the code I’ve used so far: