A bento grid brings pictures, headlines, supporting details, and calls to movement into one affiliation of otherwise sized taking part in playing cards. Shared edges and dependable gaps cling the construction together, while the larger taking part in playing cards give vital content material subject material more space.
With Divi 5‘s CSS Grid Editor, you’ll assemble that affiliation visually. Drag items into position, alter their spans, and refine the spacing without writing custom designed CSS.
In this tutorial, we’ll assemble a four-card bento hero, add content material subject material to each card, style it with Design Variables, and adapt the construction for smaller displays.
What Is A Bento Grid?
The determine comes from Eastern bento containers, where different foods occupy separate compartments within a shared container. Each and every compartment has its private area, on the other hand the affiliation works as a complete.

A bento construction applies that idea to web design. Enjoying playing cards of quite a lot of sizes cling pictures, text, statistics, or actions inside of a shared grid. Consistent spacing and alignment connect the taking part in playing cards without making each and every piece of content material subject material look in a similar way vital.
Apple’s product presentations provide a familiar example. Higher taking part in playing cards highlight a vital serve as, while smaller taking part in playing cards supply supporting details. The variation in size helps distinguish the primary message from the guidelines spherical it.

The identical means can art work on a product internet web page, corporate homepage, or device landing internet web page. The serve as is to offer each piece of content material subject material a suitable amount of area while keeping up the composition cohesive.
The Commonplace sense In the back of The Design
A bento grid uses permutations in size to reinforce visual hierarchy. A large image card can become the focus, while a smaller card holds a statistic or a temporary identify to movement.
Measurement is only one part of that hierarchy. Difference, typography, imagery, and website online moreover impact where visitors look. A large card with little difference would perhaps attract a lot much less attention than a smaller card with a formidable headline or colourful button.
For this hero, we’ll give each card a clear place: a significant visual, a headline with supporting text, a statistic, and a choice to movement. That helps to keep the construction centered and provides visitors enough context to grasp the offer previous than choosing what to do next.
Building Grids In Divi 5 Is Visual
Divi 5’s CSS Grid controls will let you define a construction at the container level. The container determines the grid building, and its child parts occupy positions inside of that building.
This makes it more uncomplicated to reuse an affiliation and experiment with its proportions. You’ll be capable of alternate the construction without rebuilding the content material subject material within each and every card.
The Grid Editor provides those controls a visual interface. It opens as a floating panel alongside the Visual Builder, where you’ll art work without delay with a representation of the grid.
Drag an products’s corner to modify what choice of rows and columns it spans, or switch the article to a couple different position. You’ll be capable of moreover alter apply sizes and gaps visually.
As you edit the grid, the construction updates throughout the builder. This permits you to read about different arrangements while keeping up the true internet web page in view.
You’ll be capable of moreover get began with one amongst Divi’s premade grid templates and customize it throughout the Grid Editor. A template will provide you with an initial building; its proportions and products placement keep editable.
Assemble A Bento Grid Hero In Divi 5
A hero section will have to introduce the internet web page and make its primary message easy to grasp. A bento affiliation will provide you with area for a formidable visual, a headline, supporting evidence, and an movement without placing the whole thing into one text block.
Our example makes use of four taking part in playing cards: one massive card on the left, one vast card at the height right kind, and two smaller taking part in playing cards beneath it.
Add A New Phase
Get began with a blank internet web page throughout the Visual Builder. If it already accommodates an empty Phase, use that as your home to start. Another way, click on at the blue plus icon in an effort to upload an ordinary Phase.
Right through the Phase, click on at the fairway plus icon to open the Row insertion possible choices. You’ll see the available column structures and grid templates.

Scroll to Assemble Custom designed Grid and choose it. This opens the Grid Editor so that you’ll define your own affiliation.

Assemble The Grid Building
At the height of the Grid Editor, enter the ones settings:
- Columns: 4
- Rows: 3
- Horizontal Hollow: 20px
- Vertical Hollow: 20px
- Grid Items: 4
The Grid Items field controls the selection of preview placeholders confirmed throughout the editor. It does no longer add precise Columns or modules to the internet web page. We’ll check out the Row’s child Columns after defining the affiliation.

Resize the principle products so it spans columns 1 and a couple of all the way through all 3 rows. This becomes the primary visual card, occupying the left a part of the grid.
Place the second products throughout the upper-right area. Resize it to span columns 3 and 4 all the way through rows 1 and a couple of. Its height edge aligns with the primary visual card, with the configured hollow surroundings aside them.
Place items 3 and 4 in the rest cells: products 3 in column 3, row 3, and products 4 in column 4, row 3. Each and every occupies one column and one row.
The finished building has one massive card, one vast card, and two smaller taking part in playing cards.

Open the Row’s Content material subject material tab and enlarge Parts to check its precise Columns. Add or replica Columns, or remove unused ones, until there are 4.
The ones 4 child Columns become the taking part in playing cards represented by the use of the editor’s 4 preview items. Keep their order consistent with the affiliation you created.

The Grid Editor remains available as you assemble. You’ll be capable of revisit the spans, apply sizes, and gaps as quickly because the content material subject material is in place. The empty building establishes the affiliation, on the other hand the finished content material subject material will allow you to judge its proportions.
Add Content material subject material To Each and every Card
The 4 taking part in playing cards produce other roles, in order that they don’t have an identical quantity or type of content material subject material. Use the massive card for the primary visual, the vast card for the message, and the two smaller taking part in playing cards for supporting wisdom and an movement.
Keep the content material subject material concise enough to fit those roles. A larger card does no longer need additional words simply because it has more space.
The Number one Visual Card
The main card spans the left a part of the grid all the way through all 3 rows. In this example, it accommodates an image showing Divi’s layout-building apparatus.
Add an Image Module to the principle Column and choose your image. A product visual, crew {photograph}, or interface preview can art work well correct right here, depending on the internet web page.
You’ll be capable of moreover use a Column background image when the image is decorative. An Image Module comes in handy when the visual needs its private image settings and descriptive selection text.

The card can cling other content material subject material as well. For example, a portrait and a temporary testimonial would possibly simply make social proof the primary visual point of interest. A Video Module is another option when a sign would explain the offer additional effectively.
Select content material subject material that benefits from the larger area, and check out that its crop or proportions art work within the card.
The Headline And Supporting Text Card
The second card occupies the top-right area, spanning two columns and two rows. Every the headline and its supporting text belong within this card.
Add a Heading Module for the primary message. Keep it direct and particular to the offer. For a internet web page’s primary hero heading, use a suitable heading level, maximum continuously H1.
Beneath it, add a Text Module with one or two supporting sentences. This offers the headline context without requiring a separate card or changing the four-card building.

Use the spacing between the ones modules to make their courting clear. They’ll have to be informed as one message, with the headline introducing the idea and the body text explaining it.
The Stat Or Serve as Card
The third card sits underneath the headline card on the left. Its smaller footprint suits a single statistic or a temporary serve as highlight.
For a statistic, add a Text Module containing the amount, then any other Text Module beneath it with a brief rationalization. Use a decide you’ll substantiate and enough context for visitors to grasp what it represents.

A serve as highlight can use the identical building. Alternate the amount with a temporary label, then explain the possible underneath. For example, a service internet web page would perhaps use this card to highlight its turnaround time or the primary deliverable.
Select this kind of approaches for the third card. The fourth card remains available for the verdict to movement.
The CTA Card
Add a Button Module to the fourth card. Use a label that describes the holiday spot or movement, harking back to “Get Divi 5,” “View Plans,” or “Information A Title.”
The example moreover includes a fast heading and supporting text above the button. The ones give visitors a final piece of context previous than they act.

Keep one primary movement in this card. Additional links don’t appear to be at all times very important, in particular when the rest of the hero already explains the offer. The aim is to make the next step easy to identify.
Style The Enjoying playing cards
The taking part in playing cards already differ size-wise. Styling helps connect them while distinguishing their roles.
Get began with consistent inside of padding and rounded corners. Then make a choice backgrounds and text colors that make each card readable and gives the primary message appropriate emphasis. The largest card does no longer moreover need essentially the most tough background color to stand out.
You’ll be capable of enter values without delay into each environment, on the other hand shared Design Variables make repeated values more uncomplicated to keep an eye on. A now not abnormal card radius, font, or logo color can also be changed centrally as an alternative of being up to the moment in several places.
Open the Variable Manager from the Visual Builder’s left sidebar. Create or choose the variables you need to use, then connect them to the similar fields.

When a variable changes, settings hooked up to it use the up to the moment worth. Settings that still include manually entered values don’t appear to be routinely similar, so observe the variables any place you need that shared keep an eye on.
What Design Variables Reinforce
Divi 5 is helping seven variable sorts:
- Colors: Reusable logo colors, background tones, and text colors.
- Fonts: Typefaces for headings, body text, buttons, or other text roles. Changes have an effect on the font fields hooked up to the variable.
- Numbers: Values for suitable settings harking back to font size, spacing, width, and border radius. The ones can include supported CSS functions harking back to
clamp()for fluid sizing. - Text: Repeated content material subject material harking back to a temporary label or CTA message.
- Pictures: Shared assets used in suitable image or background fields.
- Gradients: Reusable gradients, which is in a position to moreover use Color Variables for their stops.
- Links: Shared URLs that can be up to the moment from one place.
As a way to upload one, open the Variable Manager, make a choice the type, enter a descriptive determine, and set its worth. For this construction, names harking back to “Card Border Radius,” “Hero Heading Measurement,” and “Card Padding” make their purpose easy to recognize.

Use the variable keep an eye on beside a suitable field to make a choice the right variable. For example, connect the corner-radius settings on each card to the identical Amount Variable.

Use The Variable Generator
If you want to have similar sun shades for the taking part in playing cards, the Variable Generator can have the same opinion assemble a palette from a starting color.
Hover over the Colors workforce throughout the Variable Manager and open the generator. Select a primary color, then alter the palette settings to create similar variations.
The generator can produce tints, sun shades, tones, and transparency variations the use of relative color adjustments. Palette possible choices moreover will let you uncover relationships between the primary and secondary colors.

A Complementary palette can create a stronger difference between colors, while an Analogous palette helps to keep them closer together. Use the Color Style Data Preview to test combinations, then check out the readability of the text on your precise taking part in playing cards.
The Variable Generator moreover is helping amount scales for spacing and typography. You’ll be capable of use the ones to determine similar sizes as an alternative of choosing each and every worth independently.
In this example, the headline card uses a deep blue background with delicate text. The statistic card uses a brighter blue, while the CTA card uses a pale tint and a blue button. The image card provides visual difference alongside them.

Apply the shared radius to all 4 taking part in playing cards and use a Phase background that complements the palette. Check the card padding and module spacing after together with the backgrounds, because the ones edges make uneven spacing additional noticeable.
The end result should actually really feel like one composition, with enough difference to distinguish the taking part in playing cards without making them compete for attention.
Adjust The Hero For Smaller Screens
The desktop affiliation relies on having enough width for two smaller taking part in playing cards beneath the headline. On a phone, that exact same building may just make the text cramped and the button difficult to use.
Switch to the Phone breakpoint throughout the Internet web page Bar at the height of the Visual Builder. Open the Row’s responsive construction settings and configure a single-column affiliation for that breakpoint.
When the use of a building template, you must unquestionably are changing the responsive construction fairly than deleting or merging the 4 content material subject material Columns. All 4 taking part in playing cards should keep throughout the internet web page.

Check the location regulations along with the column depend. If desktop column starts or spans keep energetic, override them at the phone breakpoint so each and every card fits the single-column construction. Evaluate row spans and heights so each card has enough space for its content material subject material.
The phone view should form a clear vertical stack. In this example, the image leads, followed by the use of the headline, statistic, and CTA. Keep the content material subject material order logical fairly than relying most straightforward on visual positioning.
Finish by the use of checking heading sizes, card padding, image cropping, gaps, and button width. Evaluate the tablet breakpoint too; it’s going to reinforce a definite affiliation from each desktop or phone.
The ones responsive adjustments let the desktop retain its bento composition while smaller displays give you the identical content material subject material in a additional readable construction.
Assemble A Bento Hero Visually With Divi 5
A bento hero combines various content material subject material sorts inside of a shared construction. Different card sizes determine emphasis, while consistent spacing, color, and typography have the same opinion the taking part in playing cards art work together.
With Divi 5‘s Grid Editor, you’ll assemble the affiliation visually and refine it since the content material subject material takes shape. Design Variables keep shared values manageable, and responsive settings will let you adapt the composition without rebuilding its content material subject material.
Get began with this four-card building, then alter the proportions and content material subject material to suit your internet web page. Keep the primary message clear, give each card a purpose, and check out the finished construction all the way through visual display unit sizes.
The publish How To Construct A Bento Grid Hero With Divi 5’s CSS Grid Editor appeared first on Sublime Topics Weblog.





0 Comments