How to Make Kadence Info Boxes and Columns the Same Height
Content
A common challenge when building layouts with the Kadence Blocks plugin is getting elements like Info Boxes or columns within a Row Layout to have a uniform height. This is especially noticeable when content length varies, causing an uneven and unprofessional look. This guide explains why this happens and provides the most effective solutions.
Why Elements Have Different Heights
By default, blocks like the Info Box and columns in a Row Layout will only be as tall as the content inside them. This is standard web behavior. When one Info Box has two lines of text and another has five, their containing elements will naturally have different heights. The goal is to force these containers to match the height of the tallest element in the row.
Common Solutions for Equal Height Layouts
1. Use the Built-in "Inner Column Height 100%" Setting
For columns within a Row Layout block, the plugin offers a direct setting to help with equal heights.
- Select the parent Row Layout block.
- In the block settings sidebar, navigate to the Structure Settings tab.
- Enable the option labeled Inner Column Height 100%.
This applies the CSS height: 100%; to the inner columns, instructing them to stretch to fill the full height of the row. This works best when the row itself has a defined height or when all columns are in the same row. As noted in the sample threads, this setting may not always propagate perfectly to inner blocks like the Info Box, which leads to the next solution.
2. Apply a Minimum Height to Individual Blocks
If the above method doesn't achieve the desired result, you can set a uniform minimum height on each block.
- Select each Info Box block (or other block) in your row.
- In the block's settings, look for the Dimensions or Advanced tab.
- Find the Minimum Height setting and enter a value, such as
300px.
This ensures every block is at least the height you specify. The downside is that you must manually set this value and update it for each block if your design changes.
3. Add Custom CSS (Advanced)
For more control, you can use custom CSS. This is useful if the built-in settings don't work for your specific layout hierarchy (e.g., Row Layout > Section > Info Box).
To make inner columns stretch:
Add the following CSS in the Customizer under Additional CSS or in your theme's stylesheet.
.kt-inside-inner-col {
height: 100%;
}
To make Info Boxes equal height in a row:
You can target the Info Boxes directly. The following CSS uses flexbox to force equal heights on all items within the same container.
.wp-block-kadence-rowlayout {
display: flex;
}
.kt-info-box {
height: 100%;
}
Note: The exact CSS selector might vary depending on your theme and other plugins. Using your browser's inspector tool to identify the correct classes is recommended.
Conclusion
Achieving equal heights for Kadence Blocks is a common layout goal. The most straightforward method is to use the Inner Column Height 100% setting on the Row Layout block. If that doesn't fully work for your scenario, setting a Minimum Height on individual blocks or adding a small amount of Custom CSS are reliable alternatives. For complex layouts, CSS is often the most powerful and flexible solution.
Related Support Threads Support
-
Equal height to pictures in image box possible?https://wordpress.org/support/topic/equal-height-to-pictures-in-image-box-possible/
-
kt-inside-inner-col too longhttps://wordpress.org/support/topic/kt-inside-inner-col-too-long/
-
Force blocks to be same height in rowhttps://wordpress.org/support/topic/force-blocks-to-be-same-height-in-row/
-
How to set uniform height for 4 columns of info boxes within a row layouthttps://wordpress.org/support/topic/how-to-set-uniform-height-for-4-columns-of-info-boxes-within-a-row-layout/
-
“Break Section Full Width” not quite lining up with theme, can we get a class?https://wordpress.org/support/topic/break-section-full-width-not-quite-lining-up-with-theme-can-we-get-a-class/
-
height attribute for Column in Row Layout Blockhttps://wordpress.org/support/topic/height-attribute-for-column-in-row-layout-block/
-
How to increase the height of a row layout div?https://wordpress.org/support/topic/how-to-increase-the-height-of-a-row-layout-div/
-
Tablehttps://wordpress.org/support/topic/table-29/
-
Full width row with inner row normal containerhttps://wordpress.org/support/topic/full-width-row-with-inner-row-normal-container/
-
Extend Section background to full height of Row?https://wordpress.org/support/topic/extend-section-background-to-full-height-of-row/
-
Background Colour/Image on Columnshttps://wordpress.org/support/topic/background-colour-image-on-columns/
-
New inline css?https://wordpress.org/support/topic/new-inline-css/
-
Custom CSS – could it support SCSS-style nesting?https://wordpress.org/support/topic/custom-css-could-it-support-scss-style-nesting/
-
Setting Height of Tabs Content Area By CSShttps://wordpress.org/support/topic/setting-height-of-tabs-content-area-by-css/
-
Spacer / DIvider increase max height past 40 pixelshttps://wordpress.org/support/topic/spacer-divider-increase-max-height-past-40-pixels/
-
Request for improvementhttps://wordpress.org/support/topic/request-for-improvement-2/
-
Info Box- Equal height 100%https://wordpress.org/support/topic/info-box-equal-height-100/
-
Full Width Inner Content Questionhttps://wordpress.org/support/topic/full-width-inner-content-question/
-
feature request – color of column; full heighthttps://wordpress.org/support/topic/feature-request-color-of-column-full-height/
-
Setting Max Width for Inner Row Contenthttps://wordpress.org/support/topic/setting-max-width-for-inner-row-content/