Archived topic
Define a fixed height and width of container
5 replies · Started by Jan on February 14, 2022
I'm trying to create a comparison table of different products.
I have the issue that the logos of the brands have different sizes and the content below the logos isn't aligned horizontally anymore. Is it possible to fix the size of the container (height and width), so that every logo I add to the container will fit within the fixed container?
Thanks,
Jan
Hi Jan,
Any chance you can link us to the site in question?
You can use the private information field.
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
Hi Ying,
Please find the table in the following blog post
Try this CSS to define the height of the image blocks:
.gb-grid-wrapper.gb-grid-wrapper-72f21815 .wp-block-image {
height: 75px;
display: flex;
align-items: center;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
What I finally did, was to take a container and put the image as a background. That worked well.
Glad you found a way :)