A hero phase units the web page’s tone, and percentage is helping information guests to the correct position first. In a two-column format, giving the content material more space creates a more potent point of interest whilst maintaining the picture provide and supportive.
In Divi 5, you’ll be able to create that steadiness with a three/5 and a pair of/5 Flexbox row, which provides you with a sensible 60/40 break up. It isn’t the precise golden ratio, which is nearer to 61.8/38.2, nevertheless it follows the similar thought: one aspect leads whilst the opposite helps it. On this educational, we’ll construct that hero phase the usage of Divi 5, with Flexbox dealing with the alignment, spacing, and responsive habits.
Contents
What Is The Golden Ratio In Hero Design?
The Golden Ratio is a percentage of about 1:1.618.
In format phrases, it provides you with a technique to divide area so one aspect leads with out the opposite disappearing. The precise break up is nearer to 61.8/38.2, however a 60/40 break up is a sensible model for hero sections. The bigger aspect carries the principle message. That incorporates the headline, supporting textual content, and call-to-action buttons. The smaller aspect 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 reproduction and symbol the similar visible weight. A 60/40 construction provides one aspect a transparent lead. Guests can learn the content material first, then transfer to the visible. That predictable float turns out to be useful in a hero phase as it is helping other people perceive the web page temporarily. The difficult phase is popping that percentage right into a operating format with out combating the builder.
In Divi 5, Flexbox is constructed into the format device for sections, rows, and columns. That suggests you’re operating with a type that understands how parts will have to percentage, stretch, and reply to area. The actual benefit of Flexbox in responsive design is that it defines relationships between parts quite than fastened positions. This is helping proportions like 60/40 hang throughout display screen sizes with fewer handbook changes.

You pick out a pre-built 3/5 and a pair of/5 flex row from the row templates, and the share is already there. The whole thing else, together with alignment, spacing, and responsive habits, follows from the flex controls you place on most sensible 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 break up comes from Divi 5’s Flexbox row templates. Whilst you insert a row, you’ll in finding offset column choices that make this format simple to arrange. No handbook width calculations are wanted. The primary column takes up 3/5 of the row, and the second one takes up 2/5. That provides you with the structural basis proper from the beginning. From there, Flexbox controls on the row and column degree maintain the remainder.
Surroundings Align Pieces to Stretch makes each columns fill the to be had peak of the row. This assists in keeping the picture and content material vertically aligned with out padding tips. Develop to Fill at the proper column’s module tells it to extend within its flex area. This is how the picture covers its column from edge to edge.
In the event you’re new to those homes, this amateur’s information to Flexbox CSS homes explains how every one works sooner than you get started making use of them. For a complete reference of each atmosphere to be had in Divi 5, this breakdown of each Flexbox atmosphere in Divi 5 covers them intimately.
Be informed The whole thing About Divi 5’s Flexbox
What We’re Construction
The hero phase we’re development has two columns set in a 60/40 break up. The left aspect holds the principle content material. It features a label, headline, supporting description, a pricing element, and two call-to-action buttons.
The suitable aspect holds a full-height symbol that fills its column totally. It sits flush in opposition to the brink with out gaps. Right here’s a preview of the overall design:

The content material sits within the higher part of the left column quite than lifeless 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 Segment
With the idea that in position, let’s put it in combination in Divi 5. Each and every step builds at the closing. Via the top, you’ll have a structured hero phase with Flexbox dealing with the format all the way through.
Step 1. Create The Segment And Set Up The Row
Get started via including a brand new Segment for your web page. Open Segment Settings > Sizing and set the Min Top to 100vh.
This tells the phase to take in no less than the total peak of the viewport. The hero fills the primary display screen on load, even sooner than the customer scrolls.

Subsequent, insert a row throughout the phase. Divi 5 features a pre-built Flexbox offset column row that displays the sensible 60/40 percentage. Choose that from the row templates.
New rows in Divi 5 are Flex via default, nevertheless it’s price confirming this below Design > Format Sort > Flex sooner than shifting ahead.

Open the Row Settings and move 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. Getting rid of the max width cap we could it scale throughout higher monitors with out hitting a set boundary.

Step 2. Construct The Hero Segment Format
Open the Segment Settings and set #26292F because the Background Colour. This darkish background provides the hero its distinction. It additionally assists in keeping the white typography readable in opposition to it.

Subsequent, open the Row Settings and make sure the column proportions.
Move to Row > Content material > Parts, make a selection the primary column, and ensure it occupies 3/5 of the row. In the event you decided on the pre-built offset row in Step 1, this will have to 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. Practice it with a Textual content module for the supporting description. Then upload a 2d Textual content module for the pricing element or any quick supporting line you wish to have to incorporate under the outline.

Under the textual content modules, insert a nested row throughout the left column and position your Button modules within it aspect via aspect.
The use of a nested row right here assists in keeping the buttons at the identical line. It additionally provides you with flex controls over their spacing with out affecting the remainder of the column format.
For the correct 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 move to Sizing and permit Develop to Fill.
This tells the module to extend throughout the to be had peak of its flex column. This is how the picture stretches edge to edge with no fastened peak price.
Step 3. Taste The Content material
With the construction in position, we will paintings in the course of the typography and hues. We’ll move 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. Maintaining it small is intentional. It introduces the phase with out pulling center of attention from the headline.

Open the Heading module and move 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 peak to 1.2em.
Prata is a serif font that carries weight at huge sizes. The 1.2em line peak assists in keeping the traces shut sufficient to learn as a unmarried unit. Follow an italic taste to the second one a part of the heading textual content to create distinction throughout the headline itself.

For the outline and pricing textual content modules, stay Prata because the font for consistency. Alter the sizes to mirror every module’s function. The outline will have to 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 aspect via aspect.

For the buttons, set the principle 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 keeping with the label and appears like a part of the similar kind device.

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

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

Step 4. Alter 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 move to Design > Format. Set Align Pieces to Stretch. This tells each columns to extend around the to be had row peak. The picture and content material occupy the similar vertical area with out both one falling quick.

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

Now place the content material throughout the left column. Open the Left Column settings and move 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 as regards to the brink.
Step 5. Optimize For Cellular
Flexbox makes the responsive changes right here extra manageable than they might be with a block-based format. Alignment, spacing, and column habits are managed on the container degree. That suggests you’re adjusting a handful of settings quite than weeding out particular person modules.
If you wish to have a fuller image of ways Divi 5 handles responsive layouts with Flexbox, this information on the usage of Flexbox for responsive internet design walks in the course of the complete device.
Transfer to the responsive view and get started with the phase. Scale 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, trade the column format so the content material stacks above the picture on cell. Divi 5 allows you to set a distinct row construction consistent with breakpoint. That suggests 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 long way 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 monitors, they’re merely organized vertically as an alternative of aspect via aspect.
Get started The use of Flexbox In Divi 5 As of late!
The golden ratio provides you with a kick off point, now not a formulation to practice exactly. On this format, the three/5 and a pair of/5 rows create a sensible 60/40 break up. A flex row and a handful of alignment controls are sufficient to construct a hero phase that feels regarded as.
The true price is that the construction is reusable. Change the content material. Trade the picture. Alter the typography. The underlying common sense remains intact as a result of Flexbox handles the format quite than a patchwork of handbook spacing selections.
The put up How To Construct A Golden Ratio Hero Segment With Divi 5’s Flexbox gave the impression first on Chic Topics Weblog.
WordPress Web Design
