A hero segment units the web page’s tone, and percentage is helping information guests to the fitting position first. In a two-column format, giving the content material more space creates a more potent point of interest whilst protecting the picture provide and supportive.
In Divi 5, you’ll be able to create that steadiness with a three/5 and a couple of/5 Flexbox row, which offers you a realistic 60/40 cut up. It isn’t the precise golden ratio, which is nearer to 61.8/38.2, nevertheless it follows the similar concept: one facet leads whilst the opposite helps it. On this instructional, we’ll construct that hero segment the usage of Divi 5, with Flexbox dealing with the alignment, spacing, and responsive habits.
What Is The Golden Ratio In Hero Design?
The Golden Ratio is a percentage of about 1:1.618.
In format phrases, it offers you a technique to divide house so one facet leads with out the opposite disappearing. The precise cut up is nearer to 61.8/38.2, however a 60/40 cut up is a realistic model for hero sections. The bigger facet carries the principle message. That comes with the headline, supporting textual content, and call-to-action buttons. The smaller facet holds a visible that enhances the message with out competing for consideration.

A 50/50 format places each side on equivalent footing. That may paintings in some designs, nevertheless it additionally provides the replica and symbol the similar visible weight. A 60/40 construction provides one facet a transparent lead. Guests can learn the content material first, then transfer to the visible. That predictable float comes in handy in a hero segment as it is helping other folks perceive the web page briefly. The tough section is popping that percentage right into a running format with out preventing the builder.
In Divi 5, Flexbox is constructed into the format gadget for sections, rows, and columns. That implies you’re running with a fashion that understands how parts must percentage, stretch, and reply to house. The real advantage of Flexbox in responsive design is that it defines relationships between parts quite than fastened positions. This is helping proportions like 60/40 dangle throughout display screen sizes with fewer guide changes.

You select a pre-built 3/5 and a couple of/5 flex row from the row templates, and the percentage is already there. The whole lot else, together with alignment, spacing, and responsive habits, follows from the flex controls you place on best of it.
What Makes This Format Paintings In Divi 5
A couple of Divi 5 options do many of the heavy lifting on this format. The 60/40 column cut up comes from Divi 5’s Flexbox row templates. While you insert a row, you’ll to find offset column choices that make this format simple to arrange. No guide width calculations are wanted. The primary column takes up 3/5 of the row, and the second one takes up 2/5. That offers you the structural basis proper from the beginning. From there, Flexbox controls on the row and column degree care for the remainder.
Environment Align Pieces to Stretch makes each columns fill the to be had top of the row. This helps to keep the picture and content material vertically aligned with out padding tips. Develop to Fill at the proper column’s module tells it to enlarge inside of its flex house. This is how the picture covers its column from edge to edge.
If you happen to’re new to those houses, this beginner’s guide to Flexbox CSS properties explains how each and every one works prior to you get started making use of them. For a complete reference of each surroundings to be had in Divi 5, this breakdown of every Flexbox setting in Divi 5 covers them intimately.
Learn Everything About Divi 5’s Flexbox
What We’re Construction
The hero segment we’re development has two columns set in a 60/40 cut up. The left facet holds the principle content material. It features a label, headline, supporting description, a pricing element, and two call-to-action buttons.
The correct facet holds a full-height symbol that fills its column utterly. It sits flush towards the brink with out gaps. Right here’s a preview of the general design:

The content material sits within the higher part of the left column quite than useless heart. That provides the format a extra intentional really feel. Flexbox handles the column heights, symbol stretch, and spacing between modules, so the construction remains constant.
Construct The Golden Ratio Hero Phase
With the idea that in position, let’s put it in combination in Divi 5. Every step builds at the closing. By means of the tip, you’ll have a structured hero segment with Flexbox dealing with the format during.
Step 1. Create The Phase And Set Up The Row
Get started through including a brand new Phase on your web page. Open Phase Settings > Sizing and set the Min Top to 100vh.
This tells the segment to take in a minimum of the total top of the viewport. The hero fills the primary display screen on load, even prior to the customer scrolls.

Subsequent, insert a row within the segment. Divi 5 features a pre-built Flexbox offset column row that displays the sensible 60/40 percentage. Make a selection that from the row templates.
New rows in Divi 5 are Flex through default, nevertheless it’s value confirming this underneath Design > Format Kind > Flex prior to transferring ahead.

Open the Row Settings and cross to Design > Sizing. Set the Width to 90% and the Max Width to None.
The 90% width provides the row respiring room from the browser edges. Eliminating the max width cap shall we it scale throughout better displays with out hitting a set boundary.

Step 2. Construct The Hero Phase Format
Open the Phase Settings and set #26292F because the Background Colour. This darkish background provides the hero its distinction. It additionally helps to keep the white typography readable towards it.

Subsequent, open the Row Settings and ensure the column proportions.
Move to Row > Content material > Parts, make a choice the primary column, and ensure it occupies 3/5 of the row. If you happen to decided on the pre-built offset row in Step 1, this must already be set as it should be.

With the proportions showed, get started including content material to the left column.
Upload a Textual content module for the label above the heading. Then upload a Heading module for the principle name. Observe it with a Textual content module for the supporting description. Then upload a 2nd Textual content module for the pricing element or any brief supporting line you need to incorporate beneath the outline.

Underneath the textual content modules, insert a nested row within the left column and position your Button modules inside of it facet through facet.
The use of a nested row right here helps to keep the buttons at the similar line. It additionally offers you flex controls over their spacing with out affecting the remainder of the column format.
For the fitting column, upload a Divider module and switch off Display Divider so it renders as an invisible container. Set your symbol because the Background Symbol of the module. Then cross to Sizing and permit Develop to Fill.
This tells the module to enlarge within the to be had top of its flex column. This is how the picture stretches edge to edge with no fastened top price.
Step 3. Taste The Content material
With the construction in position, we will paintings in the course of the typography and colours. We’ll cross in visible order, ranging from the highest of the left column and dealing down.
The Welcome House label sits above the heading and acts as a quiet access level into the content material. Open its Textual content module, transfer the font to Inter with a Daring weight, and set the dimensions to 14px. Preserving it small is intentional. It introduces the segment with out pulling focal point from the headline.

Open the Heading module and cross to Design > Heading Textual content. Set the font to Prata with a Common weight. Set the textual content colour to #FFFFFF, the dimensions to 72px, and the road top to 1.2em.
Prata is a serif font that carries weight at huge sizes. The 1.2em line top helps to keep the traces shut sufficient to learn as a unmarried unit. Observe an italic taste to the second one a part of the heading textual content to create distinction inside the headline itself.

For the outline and pricing textual content modules, stay Prata because the font for consistency. Modify the sizes to mirror each and every module’s function. The outline must keep smaller and relaxed to learn.
The pricing textual content will get a dimension of 24px. This provides it sufficient presence with out competing with the heading above it. Set the buttons’ row Width to 500px so the buttons take a seat facet through facet.

For the buttons, set the main button’s background to #FFFFFF with a textual content colour of #333333. Opposite the ones values for the secondary button. Use Inter Daring on each so the button textual content remains in step with the label and appears like a part of the similar sort gadget.

At the proper column, upload a 10px Border Radius to the Divider module to around the corners of the picture rather. This softens the brink the place the picture meets the darkish background. It additionally helps to keep the entire format from feeling too inflexible.

At this level, the left column has all its content material and the fitting column has its symbol. Right here’s what the total format seems like prior to we transfer directly to alignment.

Step 4. Modify Alignment And Vertical Positioning
The content material and symbol are in position, however the columns nonetheless want format directions.
This step is the place Flexbox does the structural paintings. Open the Row Settings and cross to Design > Format. Set Align Pieces to Stretch. This tells each columns to enlarge around the to be had row top. The picture and content material occupy the similar vertical house with out both one falling brief.

Subsequent, open the Left Column settings and set the Format > Vertical Hole to 0. By means of default, Divi provides vertical hole between modules in a column.
Eliminating it right here shall we the heading, description, pricing, and buttons take a seat nearer in combination as a grouped unit. They not really feel like separate items floating aside.

Now place the content material within the left column. Open the Left Column settings and cross to Design > Format. Set Justify Content material to Finish so the content material workforce strikes towards the ground of the column.
Then upload backside padding to the left column to stay the content material from sitting too with reference to the brink.
Step 5. Optimize For Cellular
Flexbox makes the responsive changes right here extra manageable than they’d be with a block-based format. Alignment, spacing, and column habits are managed on the container degree. That implies you’re adjusting a handful of settings quite than removing person modules.
If you need a fuller image of ways Divi 5 handles responsive layouts with Flexbox, this guide on using Flexbox for responsive web design walks in the course of the complete gadget.
Transfer to the responsive view and get started with the segment. Cut back the Min Top to 60vh on pill so the hero scales down proportionally quite than dominating the display screen. Scale the heading and frame textual content sizes down as smartly, so clarity holds at smaller widths.
Subsequent, exchange the column format so the content material stacks above the picture on cell. Divi 5 means that you can set a distinct row construction according to breakpoint. That implies you’ll be able to transfer to a single-column format on cell with out touching the desktop model.
In a stacked format, that padding would push the content material too a ways down, leaving a big hole above it. Those changes stay the similar proportional common sense intact throughout display screen sizes. The content material nonetheless leads, and the picture nonetheless helps it. On smaller displays, they’re merely organized vertically as a substitute of facet through facet.
Get started The use of Flexbox In Divi 5 Lately!
The golden ratio offers you a kick off point, no longer a formulation to observe exactly. On this format, the three/5 and a couple of/5 rows create a realistic 60/40 cut up. A flex row and a handful of alignment controls are sufficient to construct a hero segment that feels thought to be.
The true price is that the construction is reusable. Switch the content material. Alternate the picture. Modify the typography. The underlying common sense remains intact as a result of Flexbox handles the format quite than a patchwork of guide spacing selections.
The publish How To Build A Golden Ratio Hero Section With Divi 5’s Flexbox seemed first on Elegant Themes Blog.



0 Comments