{"id":2285,"date":"2021-02-01T16:40:03","date_gmt":"2021-02-01T16:40:03","guid":{"rendered":"https:\/\/www.gmitropapas.com\/?post_type=knowledgebase&p=2285"},"modified":"2021-02-01T16:49:04","modified_gmt":"2021-02-01T16:49:04","slug":"fill-vertical-space-in-a-grid-container","status":"publish","type":"knowledgebase","link":"https:\/\/www.gmitropapas.com\/generatepress-tips-and-tricks\/generateblocks\/fill-vertical-space-in-a-grid-container\/","title":{"rendered":"Fill vertical space in a grid container"},"content":{"rendered":"\n

You might bump into an issue where you have a grid with info boxes inside and struggling to bottom-align the buttons, like so:<\/p>\n\n\n\n

\"GenerateBlocks
GenerateBlocks Grid<\/figcaption><\/figure>\n\n\n\n

The above Grid has 3 inner columns but currently, there is no way to distribute the columns’ vertical space and bottom-align the buttons. To achieve the required result select the Grid wrapper<\/strong> and give it an additional CSS class<\/strong> of, let’s say align-bottom-button<\/code>.<\/p>\n\n\n\n

Then, use the following CSS:<\/p>\n\n\n\n

.align-bottom-button .gb-grid-column>.gb-container>.gb-inside-container {\n    display: flex;\n    flex-direction: column;\n    height: 100%;\n}\n\n.align-bottom-button .gb-grid-column>.gb-container>.gb-inside-container>.gb-button-wrapper {\n    margin-top: auto;\n}<\/pre>\n\n\n\n

That should fix the issue:<\/p>\n\n\n\n

\"GenerateBlocks
GenerateBlocks Grid – Distributed vertical space<\/figcaption><\/figure>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

Learn how to fill vertical space in a GenerateBlocks grid container. <\/p>\n

Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"","_seopress_titles_title":"GenerateBlocks - Fill vertical space in a grid container","_seopress_titles_desc":"Learn how to fill vertical space in a GenerateBlocks grid container.","_seopress_robots_index":"","_vp_format_video_url":"","_vp_image_focal_point":[]},"knowledgebase_cat":[36],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gmitropapas.com\/wp-json\/wp\/v2\/knowledgebase\/2285"}],"collection":[{"href":"https:\/\/www.gmitropapas.com\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.gmitropapas.com\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/www.gmitropapas.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gmitropapas.com\/wp-json\/wp\/v2\/comments?post=2285"}],"version-history":[{"count":0,"href":"https:\/\/www.gmitropapas.com\/wp-json\/wp\/v2\/knowledgebase\/2285\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gmitropapas.com\/wp-json\/wp\/v2\/media?parent=2285"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/www.gmitropapas.com\/wp-json\/wp\/v2\/knowledgebase_cat?post=2285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}