Home › Forums › Support › Using the Capital site, updated GB legacy layout now Vertical Gap not working
- This topic has 5 replies, 2 voices, and was last updated 3 years, 2 months ago by
Ying.
-
AuthorPosts
-
February 22, 2023 at 10:48 am #2543024
Lindsay
Using the Capital site and noted that GB using legacy layout system on the Containers.
Use legacy layout system
This Container is using an old layout system. Toggle this to migrate to the new system.Toggled to migrate and now the grid vertical gap does nothing. It’s there in the CSS
.gb-grid-wrapper-cb3ef5bf { align-items: center; row-gap: 40px; margin-left: -20px; }But it isn’t being applied. I know this might be more GenerateBlocks but just wondering if you could help as it’s the Capital site.
February 22, 2023 at 1:48 pm #2543210Ying
StaffCustomer SupportHi there,
Yes, GB Grid is no longer using padding as the vertical gap, it’s now using row-gap as you’ve seen in the CSS.
Can you show me the page and point me to the section?
Let me know 🙂
February 22, 2023 at 3:37 pm #2543308Lindsay
Many thanks for your help.
If you log in and look at the Home page (site under development). The ‘OUR GOALS’ heading (third Container) the Vertical Gap doesn’t appear to be applied – on the original there is a 30px padding on the grid column I think. I’ve added the Vertical Gap of 40px in the parent Grid’s block settings – but nothing changes, even though the CSS reflects the row-gap: 40px; correctly. I’m sure it’s me not understanding the CSS, so any help greatly appreciated.
February 22, 2023 at 3:53 pm #2543321Ying
StaffCustomer SupportAre you trying to add some space under the OUR GOALS heading?
If so, the new vertical gap system will not work, as the
row-gaponly applies to the space between rows.In your case, the 2 grid containers are in the same row, so there’s no place to apply the
row-gap.You might remember an old option that removes the vertical gap, it’s usually applied to the last grid container so there’s no extra padding, now we don’t have to manually do this, as
row-gapwill NOT apply to the last grid container.Let me know if there’s anything not clear!
February 23, 2023 at 1:42 am #2543665Lindsay
Ahhh, so it seems I lost the padding in the ‘grid-columns’ when switching away from the legacy layout. I added a margin back to the ‘containers’ which suited my layout better. I got fixated on the wrong thing but it’s helped to clarify.
February 23, 2023 at 9:56 am #2544341Ying
StaffCustomer SupportGlad to hear that 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.