[Resolved] Equal height for Toolset Grid via Block Editor
This thread is resolved. Here is a description of the problem and solution.
Problem:
Display/Show Equal height for Toolset Grid via Block Editor
Solution:
To set the equal height for your grid item, you should try to add the CSS mentioned with the following link to your View's Custom CSS and JS box:
I searched for hours to get all grid items the same height. Now when there is one line text everything is fine, but when there are two lines text, the Grid is not equal as I see on my border I added. Also the button I added in the grid should always be on the same height. How to achieve this?
Is there any documentation that you are following?
I read your whole forum, but also Google without result.
Is there a similar example that we can see?
Not live yet, can send a screenshot in private if needed, but I think it's quite straightforward.
Hello. Thank you for contacting the Toolset support.
I will require to know the exact structure of elements you added to your grid.
One of the similar issue I was able to fix by adding the custom CSS and here is that related solution:
Can you please try to add the following CSS code to your view's custom CSS section:
.tb-grid-column>.wpv-block-loop-item {
height: 100%;
}
.tb-grid-column>.wpv-block-loop-item>.tb-container{
height: calc(100% - 50px);
/* this is 100% minus top and bottom padding */
}
Thanks for your reply. The blocks are now all equal heights, but the buttons are not on the same position. Due to differences in the content of each block, some buttons are higher or lower placed than others. It would be fantastic if we could align the buttons on one same height. How can I achieve this?
I need to know how exactly you added your button and how it looks like currently. If you could upload your site to some test server and send me link where I can see the issue would help me to review your current setup and then I will be able to guide you in the right direction.
I need frontend screenshot as well as your block structure screenshot as well as the how button rendered in page behind (page source) screenshot so I will be able to know what classes are added.
Well - you should check the button block and with button block on right sidebar you will see the "Button Alignment" option. I hope that helps and you will require to adjust the CSS accordingly if required.
Thanks for your help. I didn't notice that is was centered in the settings bar. I adjusted the setting and the css class accordingly and it's perfect now.