In Part 1 of our Mastering Flexbox in Divi 5 sequence, we explored the core settings within the Format choice staff when the use of Flex because the Format Taste. Now it’s time to position the ones controls to paintings on one of the vital commonplace format demanding situations in internet design: construction card sections the place playing cards proportion a constant top and buttons keep aligned, even if content material lengths range.
This hands-on information will display you the best way to create balanced card layouts the use of local Divi 5 Flexbox controls. By means of the tip, you’ll know how to mix parent-level stretching, interior card spacing, and Develop to Fill sizing to construct characteristic playing cards, testimonials, pricing tables, weblog playing cards, gallery playing cards, and extra.
Let’s dive in.
Why Equivalent Peak Playing cards Subject
Playing cards are one of the vital commonplace design patterns on fashionable web pages. You’ll in finding them in characteristic sections, testimonial rows, pricing tables, weblog grids, product showcases, carrier lists, and lots of different layouts.
The problem begins when content material lengths range. One card will have a brief headline and two strains of textual content, whilst every other has an extended heading, an extended description, or a bigger characteristic checklist. With out the precise format construction, some playing cards transform taller than others, buttons sit down at other heights, and the entire segment feels asymmetric.
Key Advantages Of Equivalent Peak Playing cards
- Visible Team spirit: Playing cards really feel polished, intentional, and more straightforward to check.
- Higher Clarity & UX: Constant heights and aligned CTAs make sections more straightforward to scan.
- Clearer Calls To Motion: When buttons proportion the similar visible baseline, guests can evaluate choices and act extra temporarily.
- Responsive-Pleasant Construction: The similar Flexbox trend will also be adjusted throughout desktop, pill, and cellular breakpoints.
Mastering this method will give a boost to nearly each and every multi-column segment you construct in Divi 5.
Core Flexbox Ways For Equivalent Peak Playing cards
Growing equal-height playing cards with aligned buttons in Divi 5 is easy as soon as you realize the parent-child dating. Generally, you’ll use two core Flexbox settings and one supporting Sizing environment.
1. Guardian Container: Equivalent Heights With Align Pieces > Stretch
On the mother or father point, generally a Row or Module Group, set Align Pieces > Stretch.
This tells Divi to stretch direct youngster pieces around the move axis when their sizing permits it. In a horizontal row, that suggests the playing cards can stretch vertically to check the row top. In a vertical column, Stretch impacts the horizontal axis as an alternative.

2. Within Each and every Card: Push Buttons To The Backside
Within each and every card, generally a Column or Module Staff, set the cardboard’s Format Route to Column, then practice Justify Content material > Area Between.
Justify Content material distributes youngster pieces alongside the principle axis. When the cardboard makes use of a Column route, the principle axis runs vertically. With Area Between, the highest content material remains close to the highest whilst the button or CTA can sit down on the backside of the cardboard.

3. Supporting Surroundings: Sizing > Dimension > Develop To Fill
In lots of genuine layouts, Justify Content material > Area Between will get you shut, however it would possibly not resolve each and every alignment factor on its own. Lengthy quotes, asymmetric characteristic lists, variable excerpts, and nested content material teams can nonetheless create awkward spacing within the card.

That is the place Sizing > Dimension > Develop To Fill turns into helpful.

Within the instance under, Develop To Fill is carried out to the Textual content module inside of each and every column. The chosen part expands into the to be had house, which is helping push the content material under it towards the ground of the cardboard whilst holding the textual content aligned from the highest.
When those 3 equipment paintings in combination, you’ll construct skilled card layouts visually and keep away from customized CSS for many equal-height card patterns.
Actual-Global Examples
Let’s have a look at 5 sensible examples that display how the core tactics paintings throughout several types of content material. Each and every instance features a before-and-after view and the precise settings used.
Instance 1: Function Playing cards
Sooner than: The playing cards proportion the similar general top, however the buttons sit down at other positions as a result of each and every card has a distinct quantity of textual content.

After: The button sits on the backside of each and every card, even if the cardboard reproduction varies. That is accomplished via environment the mother or father row’s Align Pieces way to Stretch and each and every column’s Justify Content material way to Area Between. The Module Staff containing the icon, heading, and textual content remains on the peak, whilst the Button module out of doors that staff is driven to the ground.

Key Settings:
- Guardian Row: Align Pieces > Stretch
- Each and every Column: Format Route > Column + Justify Content material > Area Between
- Module Staff: Wraps the Icon, Heading, and Textual content modules
Instance 2: Testimonial Playing cards
Sooner than: The mother or father row has Align Pieces > Stretch carried out, so the playing cards proportion a constant top. Then again, with out Justify Content material > Area Between inside of each and every card, the writer blocks sit down anywhere the quote ends. Longer quotes push the writer data into other positions, growing visual misalignment around the row.

Intermediate Step: After environment each and every column to Justify Content material > Area Between, the megastar scores keep on the peak and the writer blocks transfer to the ground. Then again, the quote textual content might nonetheless sit down awkwardly in the remainder house.

After: Quotes range in duration, however the writer block remains anchored on the backside of each and every card. The row makes use of Align Pieces > Stretch so all columns proportion the similar row top. Each and every column makes use of Justify Content material > Area Between to split the highest score from the ground writer block. To mend the quote spacing, permit Sizing > Dimension > Develop To Fill at the quote Textual content module. This permits the quote house to take in to be had house from the highest, pushing the writer block down whilst holding the score pinned above.

Key Settings:
- Guardian Row: Align Pieces > Stretch
- Each and every Column: Justify Content material > Area Between
- Quote Textual content Module: Dimension > Develop To Fill
Instance 3: Pricing Playing cards
Sooner than: The mother or father row has Align Pieces > Stretch carried out, which provides the pricing playing cards a constant outer top. Each and every column additionally makes use of Justify Content material > Area Between. Then again, for the reason that characteristic lists range in duration, the pricing data and buttons nonetheless don’t align constantly throughout each and every plan.

After: The mother or father row’s Align Pieces > Stretch environment helps to keep the cardboard heights constant. Each and every column makes use of Justify Content material > Area Between so the CTA buttons proportion the similar baseline. To unravel the remainder unevenness brought about via other characteristic checklist lengths, permit Sizing > Dimension > Develop To Fill at the Module Staff that incorporates the pricing data, such because the “$X/mo” segment. This we could the pricing house take in more room and pushes the decrease content material right into a extra constant vertical rhythm.

Key Settings:
- Guardian Row: Align Pieces > Stretch
- Each and every Column: Justify Content material > Area Between
- Pricing Module Staff: Dimension > Develop To Fill
Instance 4: Weblog Publish Playing cards
Sooner than: The playing cards have equivalent outer top due to Align Pieces > Stretch at the mother or father row, however the titles and excerpts range in duration. This reasons the metadata and Learn Extra hyperlinks to take a seat at inconsistent positions around the playing cards.

After: Although the thing titles and excerpts range, the Learn Extra hyperlink seems on the similar point throughout all 3 playing cards. The mother or father row makes use of Align Pieces > Stretch. Within each and every column, the coloured header icon is wrapped in a single Module Staff, whilst the principle content material, together with the class label, heading, excerpt, metadata, and button, is wrapped in a 2nd Module Staff.
The second one Module Staff makes use of Justify Content material > Area Between, and the column-level Vertical Hole is decreased to 0. In any case, Develop To Fill is enabled at the excerpt Textual content module. This permits the excerpt house to take in to be had house and push the metadata and Learn Extra hyperlink to the ground of each and every card.

Key Settings:
- Guardian Row: Align Pieces > Stretch
- Each and every Column: Vertical Hole > 0
- 2nd Module Staff: Justify Content material > Area Between
- Excerpt Textual content Module: Dimension > Develop To Fill
Instance 5: Gallery Playing cards
Sooner than: Each and every symbol has a distinct local side ratio, akin to panorama, portrait, or sq.. Divi 5’s Aspect Ratio and Image Framing options allow you to standardize symbol framing, however the content material under each and every symbol nonetheless wishes a powerful Flexbox construction to align constantly.

Each and every symbol is ready to a constant 4:3 side ratio within the Sizing choice staff.

Then, the Framing settings are adjusted to keep an eye on how the picture sits inside of that body.

After: For the overall consequence, the heading, textual content, and button modules are wrapped in a Module Staff, and Develop To Fill is enabled on that staff. This permits the content material house under each and every symbol to amplify into the to be had house, pushing the button to the ground and growing constant vertical alignment around the playing cards.

Key Settings:
- Guardian Row: Align Pieces > Stretch
- Symbol Module: Facet Ratio > 4:3 + Framing changes within the Sizing choice staff
- Module Staff: Wraps the heading, textual content, and button modules + Dimension > Develop To Fill
Complete Step-By means of-Step Card Construct Walkthrough
Right here’s the best way to construct a three-column characteristic card format the use of the tactics coated above.
Upload a brand new three-column Row to a web page within the Visible Builder. On this workflow, Flex is chosen because the Format Taste.

Within the row’s Format choice staff, set the Horizontal Hole to 3%. This decreases the horizontal house between columns and provides the playing cards a cleaner format rhythm.

Subsequent, edit the primary column. Use the Design tab so as to add your Spacing and Border kinds. With the primary column decided on, open the Format choice staff and set Justify Content material to Area Between.

Go back to the row point, then right-click the primary column within the Parts choice staff and make a choice Reproduction Merchandise Types. This will give you a handy guide a rough technique to reuse the similar column styling and format settings.

Proper-click the second one and 3rd columns and make a choice Paste Merchandise Taste.

Upload Module Teams And Content material To The Column
Get started via including a Module Staff to the primary column. Within it, position 3 further Module Teams in your content material. At the primary staff, set the Vertical Hole to 0px, Justify Content material to Area Between, and Align Pieces to Stretch.
Upload a Heading module to the primary Staff, an Icon module to the second one Staff, and every other Heading module to the 3rd Staff. Taste them as wanted.

With the nested Module Staff decided on within the Layers panel, right-click to open the short movements menu. Choose Upload Part > Upload Part Underneath. This allows you to position every other part into the column under the nested staff construction.

Make a selection a Module Staff, then upload a Textual content Module inside of it.
Upload padding to the brand new Staff, akin to 25px on both sides. Then upload a Button, Heading, and two Textual content modules, and elegance them as wanted. As soon as the content material is added, regulate the Vertical Hole to create the correct amount of spacing between modules.

Upload content material to the remainder columns, copying and pasting content material and kinds as wanted. As soon as all content material is added, it’s possible you’ll realize that shorter columns depart the ground textual content or CTA misaligned. To right kind this, use Develop To Fill at the part that are supposed to take in the to be had house. For reusable card designs, practice this constantly to the similar part kind throughout each and every card.

Choose the matching 2nd Staff within the card columns, amplify the Sizing choice staff, and permit Dimension > Develop To Fill.
Subsequent, practice Develop To Fill to the Textual content modules that wish to take in more room inside of the second one and 3rd columns.

As soon as carried out, the decrease textual content and button content material align extra constantly around the columns.
Responsive Conduct & Easiest Practices
Keep watch over Responsive Layouts With Format Wrapping
Divi 5 will give you breakpoint-level keep an eye on over how Flex layouts behave. For card rows, Format Wrapping > Wrap is particularly helpful as it permits playing cards to transport onto further strains when there isn’t sufficient horizontal house.

As soon as wrapping is lively, playing cards can stack or wrap extra naturally on smaller displays. Mix this with per-breakpoint changes the use of the Responsive Editor when you want tighter keep an eye on over pill and cellular layouts.
Use Show Order For Higher Cell Glide
The visible order that works smartly on desktop would possibly not at all times be splendid on smaller displays. Use the Show Order environment within the Content material tab of columns or modules to reorder components at particular breakpoints. That is particularly helpful for alternating textual content/symbol layouts or when you need sure playing cards to look first on cellular with out duplicating content material or writing customized media queries.
Save And Reuse Your Card Layouts
If you’ve constructed a card design you prefer, right-click the mother or father Row or Module Staff and reserve it to the Divi Library. You’ll be able to additionally save layouts to Divi Cloud for get entry to throughout more than one websites. This turns all the Flexbox card construction, together with nested teams and format settings, right into a reusable part you’ll insert into long term pages.
Take a look at With Actual Content material Diversifications
At all times check card layouts with brief, medium, and lengthy content material. The true check of a powerful equal-height card gadget is the way it behaves when content material lengths vary dramatically. Use placeholder content material of various lengths all through building to ensure your Develop To Fill, Area Between, and Stretch settings stay dependable throughout real-world situations.
Obtain The Layouts
That will help you get began, we’ve created a JSON record containing the instance layouts from this put up. To make use of them, navigate to Divi > Divi Library and click on the Import & Export button.

Choose the Import tab, load the Equivalent Peak Playing cards in Divi 5.JSON record, and click on Import Divi Builder Layouts.

As soon as the information are imported, create a brand new web page or open an present one within the Visible Builder. Click on so as to add a brand new segment.

Choose Upload From Library and make a choice a format segment.

In any case, make a choice Use This Phase to load it onto the web page.

Grasp Equivalent Peak Playing cards With Flexbox In Divi 5
With 3 core equipment, Align Pieces > Stretch at the mother or father, Justify Content material > Area Between inside of each and every card, and Develop To Fill the place wanted, you’ll create blank, constant equal-height card layouts in Divi 5 with out customized CSS.
The examples on this put up display how versatile Divi 5‘s Flexbox Format Gadget will also be while you mix parent-level alignment with interior card construction. As soon as you realize this trend, you’ll use it on characteristic rows, testimonials, pricing tables, weblog playing cards, galleries, and different multi-column sections.
In Section 3 of our Mastering Flexbox sequence, we’ll discover complicated Format Wrapping methods, together with when to make use of Wrap vs. No Wrap, how Align Content material impacts multi-line layouts, and the best way to practice those controls to extra advanced responsive buildings.
Now it’s your flip. Obtain the instance layouts, experiment within the Visible Builder, and take a look at construction your individual card sections. Tell us what you assume within the feedback under.
The put up Part 2 Of Mastering Flexbox: Creating Equal-Height Cards With Aligned Buttons seemed first on Elegant Themes Blog.



0 Comments