With Divi 5, CSS Grid is constructed into the Visible Builder, so you’ll be able to create true two-dimensional layouts the use of rows and columns in combination with out touching a stylesheet. That makes sticky sidebar layouts a lot more uncomplicated to construct, particularly when it’s time to lead them to responsive.
On this put up, we can stroll thru a step by step educational to construct a sticky sidebar that remains blank throughout desktop, pill, and call with out writing a unmarried line of CSS.
Let’s get began!
What Is CSS Grid?
CSS Grid is a two-dimensional structure machine that lets you create complicated grids with rows and columns inside of a unmarried container. Not like Flexbox or older strategies like floats, CSS Grid provides you with complete regulate over each axes. Merely outline the construction as soon as, and the content material snaps into position.
Key ideas come with the grid container (the mum or dad with show: grid), grid pieces (the direct youngsters), specific tracks (rows/columns), implicit tracks (auto-crated for overflow), and location controls like grid-row to span complete peak or grid-column to stretch throughout columns. Offered in 2017 and now supported in 95% of browsers, CSS Grid is a light-weight and semantic structure machine. Perfect of all, Divi 5 brings it immediately into the Visible Builder.
Key Options Of CSS Grid In Divi 5
Divi 5 transforms CSS Grid from a developer’s instrument into a visible revel in that anybody can wield proper within the Visible Builder. As an alternative of writing code, you’ll uncover pre-built Grid templates able to drop into the web page. Pick out one, tweak it, and watch your structure come alive in actual time. No longer handiest is that this a quicker development revel in, nevertheless it additionally means that you can experiment freely and land on designs that really feel custom-created with out touching a CSS stylesheet.

The whole thing occurs inside an intuitive settings panel the place clickable choices permit customers to regulate gaps, outline column widths, and align pieces very easily.

You’ll create tradition offset laws that make each fourth merchandise span two columns, offering rapid visible rhythm, all with out the will for plugins or tradition categories.

Whilst you pair this with Divi 5’s Loop Builder, you’ll be able to loop weblog posts, WooCommerce merchandise, group bios, or any tradition put up kind, with out being limited to Divi 4’s legacy weblog, store, and portfolio modules.

When you’ve been looking ahead to a explanation why to take a look at Divi 5, that is it: professional-grade layouts, 0 code, and effects that load quicker than ever.
Advantages Of CSS Grid In Divi 5
CSS Grid in Divi 5 isn’t only a function — it’s an entire machine that makes authentic design quicker, extra versatile, and available to everybody.
Fast Cord-Framing
With CSS Grid in Divi 5, pace is the secret. Cord-framing a fancy structure that when took hours of trial and mistake now occurs in mins. Drag a template, regulate column spans, and fine-tune gaps at the fly to look adjustments immediately. Whether or not you wish to have to create a sidebar for a weblog roll web page or sidebar navigation for a portfolio, Divi 5 allows you to construct, take a look at, and refine in some distance much less time.
Final Design Freedom
Design freedom is now not for pro builders. You’ll use offset laws to create repeating patterns, stagger pictures throughout rows for a masonry glance, or craft magazine-style symmetry and not using a unmarried line of CSS. Divi 5’s visible controls free up creativity, empowering you to design layouts that actually stand out.
Constructed-In Responsiveness
Responsiveness is constructed into CSS Grid in Divi 5. Transfer to cellular view the use of Customizable Responsive Breakpoints or the Responsive Editor, and cave in your 3-column structure right into a unmarried stack with one click on. Modify Column and Row spans for each and every breakpoint, reorder content material visually, and switch the sticky sidebar right into a fullwidth menu on smaller monitors. No media queries to jot down, no surprises in trying out, simply constant, authentic effects each time.
It’s A Scalable Machine
Divi 5’s CSS Grid machine scales with you. Inexperienced persons can get started with drag-and-drop templates, whilst professional builders can dive into tradition monitor definitions and exact placement. Both manner, there’s no use for tradition answers or third-party plugins that upload useless bloat for your web page. As a result of Divi 5 generates blank, semantic CSS, your websites render quicker than ever.
In brief, Divi 5’s CSS Grid machine permits quicker builds, bolder designs, and stepped forward efficiency.
How To Construct A Sticky Sidebar Structure With CSS Grid In Divi 5
On this segment, we’ll stroll you in the course of the steps to create a sticky sidebar structure the use of CSS Grid in Divi 5. All the procedure takes only some mins, due to Divi 5’s intuitive interface.
Step 1: Create the Grid Construction
Create a brand new web page in Divi or open an current one. When the Visible Builder quite a bit, click on the blue + icon so as to add a brand new segment.

Upload a Unmarried Column Flex Row to the segment.

Click on into the Phase’s Design tab, make bigger the Spacing menu, and input 0px Padding to the height and backside.

Now transfer to the Row settings. Within the Content material tab, make bigger the Parts menu. Click on + Upload Part so as to add a brand new Column to the Row.

Click on into the primary Column and assign an Admin Label to it. When operating with complicated layouts, it’s useful to name the weather to lead them to more uncomplicated to spot as we upload content material to them.

Repeat the step to rename the 2d Column.
Modify The Column Settings
Within the first Column, assign #000000 because the Background Colour.

Within the Design tab, make bigger the Sizing menu and alter the Column Elegance to 1/4.
Subsequent, make bigger the Spacing menu. Observe 3% Padding to both sides.

Click on into the 2d Column of the Mum or dad Row.

Assign #ffffff because the Background Colour within the Content material tab. Within the Design tab, make bigger the Sizing menu and follow a 3/4 Column Elegance.
Modify The Row Settings
Now we wish to regulate the Mum or dad Row’s settings. Within the Content material tab, assign #000000 because the Background Colour. Within the Design tab, make bigger the Structure menu. Modify the Row’s Horizontal and Vertical Hole to 0px.

Amplify the Sizing menu and set the Width to 100% and the Max Width to none.

Step 2: Upload Content material To The First Column
With our Row construction in position, we will start including content material to the primary Column. Click on the black + icon so as to add a picture module.

Add a picture, genre the module as desired, and upload a Homepage Hyperlink the use of Divi 5’s Dynamic Content material icon.

Make a choice Homepage Hyperlink from the to be had choices.

Upload a Heading module, adopted through a Divider module, then genre as desired.

Subsequent, upload a Unmarried Column Nested Row to the Column. This will likely space the hyperlinks for our structure.

Navigate to the Design tab and choose Grid because the Structure Taste. Set a Vertical Hole of 25, and set the Collection of Columns to 1.

Click on the black + icon so as to add a Heading module. Taste the Heading as desired.

Amplify the Hyperlink menu. Within the Module Hyperlink URL box, input an anchor hyperlink (for instance, #purple). This will likely mean you can leap to the matching segment at the web page for simple navigation.

Repeat the stairs so as to add as many menu hyperlinks (Heading modules) as desired.

Subsequent, upload a brand new Unmarried Column Row to the Column, adopted through a Social Media Observe module.
Upload Social Networks and elegance the module as desired.

Make The Sidebar Sticky
Ahead of we continue to putting in the second one Column, we wish to configure the Sticky choices. Within the Column’s settings, click on the Complicated tab. Amplify the Scroll Results menu and set the Sticky Place to Stick with Best.

Ahead of continuing to the next move, save your growth through clicking the Save button on the height proper of the Visible Builder.

Step 3: Set Up The 2d Column
In the second one Column, upload a brand new Unmarried Column Nested Row. Within the Design tab, set the Row to Grid in Structure Taste. Set the Horizontal and Vertical Hole to 40px. Within the Column Widths box, make a choice Equivalent Width Columns. Set the Quantity Of Columns to 2.

Amplify the Spacing menu and assign 3% Padding to all 4 aspects.

Step 4: Upload Content material To The 2d Column
With the Grid settings in position, we will get started including modules. Within the first Grid merchandise, upload two Heading modules. Taste them as desired.

Within the Grid Merchandise settings, assign 15px Vertical Hole.

Amplify the Sizing menu and find the Column Span box. Input 2 as the price. This tells Divi to make bigger the Grid Merchandise to the whole width of the Row, which is ready to two Columns.

Navigate again to the Grid Row’s major Content material tab. Click on + Upload Part so as to add a brand new Grid Merchandise.

Divi will stack the brand new Grid Merchandise vertically, hanging it in the second one Row of the Grid.

On this Grid Merchandise, we’ll upload Heading, Textual content, and Button modules. Taste them as desired.

Open the Design tab. Within the Structure menu, assign 15px Vertical Hole and set Justify Content material to Middle.

Navigate to the Complicated tab. We’ll wish to set an anchor hyperlink that corresponds to the primary menu merchandise within the first Column. Amplify the Attributes menu. Click on the + Upload Characteristic button.

Make a choice identification from the to be had choices.

Upload an Admin Label for the Characteristic. Within the Characteristic Price box, input the anchor hyperlink you specified for the primary heading module within the menu segment.

Upload A New Grid Merchandise
Click on again to the Row’s Content material tab and upload a brand new Grid Merchandise. This time, upload an Symbol module and elegance it as desired.

This serves as the fundamental construction of the Grid.

Reproduction And Edit Grid Pieces
To make issues simple, you’ll be able to replica Grid Pieces through clicking at the Reproduction Merchandise icon.

Make sure you upload Attributes for each and every new segment of the Grid that corresponds with their menu merchandise hyperlinks.

Reposition Grid Pieces through clicking and dragging them all over the Grid.
From there, merely edit the module’s content material whilst holding types intact all over the Grid.
Repeat those steps so as to add as many pieces as wanted. Be sure that you assign anchor hyperlinks (Attributes) to ONLY the textual content Grid Pieces. We will be able to duvet why in the next move.
Step 5: Modify Settings For Responsive Breakpoints
Our design seems nice on Desktop, but if navigating thru Divi 5’s Customizable Responsive Breakpoints, you’ll see that we wish to make some adjustments.
Fortunately, Divi 5 makes it simple to make fast adjustments to Pill and Telephone breakpoints, making sure your structure seems flawless on all display screen sizes. Whilst within the Pill Breakpoint, click on the Settings icon for the principle Row.

Click on at the Pencil icon to edit the primary Column’s settings.

Navigate to the Design tab and make bigger the Sizing menu. Set the Column Elegance to Fullwidth. This will likely make bigger the Sticky Column’s width to fill all the Row.

Hover over the Column within the Visible Builder canvas. Click on the Settings icon for the Row containing the menu hyperlinks. Within the Design tab, set the Vertical Hole to 10px and set the Quantity Of Columns to 3.

Scroll in the course of the Sticky Column’s settings to make tweaks to Spacing or Gaps.
Make changes to the Row settings that space the brand (Symbol module) and name to verify it seems just right on small software monitors. As an example, you’ll be able to assign Column Widths to Handbook Width Columns and specify a tradition Grid Column Template, corresponding to 1fr 12fr, to stack pieces horizontally as a substitute of vertically.

Modify The Grid Row For Responsiveness
Transfer to Telephone view. Click on the Settings icon for the Grid Row.

Click on the pencil icon of the 2d Grid Merchandise to regulate its settings.

Navigate to the Design tab. Modify the Column Span to 2. This will likely permit the content material to occupy the whole width of the Row. Repeat the stairs to regulate the remainder Grid Pieces to 2.

As you scroll down the web page, you’ll understand that the Grid Pieces are all occupying 2 Columns, however the order isn’t what we’d like.
To mend this, we will regulate each and every Column’s Row Get started and Row Finish values to align them completely. Because the first two Grid Pieces (which occupy 4 “Rows” on cellular) are aligned the way in which we wish, we wish to regulate the fifth Grid Merchandise in order that they stack correctly.
Click on at the fifth Grid Merchandise and navigate to the Design tab. Amplify the Sizing Menu and find the Row Get started and Row Finish fields.

Modify each and every worth to 4. Divi will then align the textual content above the picture for a extra polished look.
Repeat the stairs to regulate some other Grid Pieces the place the picture seems first within the design. Modify the price through 4 for each and every adjustment. As an example, the ninth Grid Merchandise would have Row Get started/Finish values of 8, the thirteenth Grid Merchandise would have values of 12, and so forth.

That’s it! As you’ll be able to see, Divi 5 makes it fast and simple to create a completely responsive sticky sidebar structure with CSS Grid.

@media handiest display screen and ( max-width: 767px ) {.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:earlier than { border-top-color: #ffffff !essential; border-left-color: clear !essential; }.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:after { border-bottom-color: #ffffff !essential; border-left-color: clear !essential; }
}.et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !essential; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_fields i { shade: #f92c8b !essential; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_custom_field_radio i:earlier than { background: #f92c8b !essential; } .et_bloom .et_bloom_optin_1 .et_bloom_border_solid { border-color: #f7f9fb !essential } .et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !essential; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2, .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2 span, .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2 robust { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; }.et_bloom .et_bloom_optin_1 .et_bloom_form_container p, .et_bloom .et_bloom_optin_1 .et_bloom_form_container p span, .et_bloom .et_bloom_optin_1 .et_bloom_form_container p robust, .et_bloom .et_bloom_optin_1 .et_bloom_form_container shape enter, .et_bloom .et_bloom_optin_1 .et_bloom_form_container shape button span { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; } p.et_bloom_popup_input { padding-bottom: 0 !essential;}

Obtain For Loose
Sign up for the Divi Publication and we can e-mail you a replica of without equal Divi Touchdown Web page Structure Pack, plus lots of different wonderful and loose Divi sources, pointers and methods. Observe alongside and you’ll be a Divi grasp very quickly. If you’re already subscribed merely kind to your e-mail deal with underneath and click on obtain to get entry to the structure pack.
You could have effectively subscribed. Please test your e-mail deal with to substantiate your subscription and get get entry to to loose weekly Divi structure packs!
Unencumber CSS Grid in Divi 5 Now
With Divi 5‘s integrated CSS Grid function, sticky sidebars are now not a headache. In only some mins, you’ll be able to construct a structure that’s responsive and polished. From fast wireframing to seamless cellular stacking, CSS Grid within the Visible Builder permits quicker builds, bolder designs, and a smoother consumer revel in that helps to keep guests engaged.
Able to stage up with Divi 5? Head to the Divi Contributors Space and obtain the newest Divi 5 Public Beta to experiment with CSS Grid these days. Tell us what you suppose within the feedback, or drop us a touch upon our social media platforms.
The put up How To Construct A Sticky Sidebar Structure With CSS Grid In Divi 5 gave the impression first on Sublime Topics Weblog.
WordPress Web Design