1. HOT Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
HOT Divi Login Customizer Plugin - White-label your Wordpress login page for your Divi site.
View premade login page design
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color.
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Huge spacing gaps before and after pricing tables

Discussion in 'Free Divi Community Forum' started by OnedayIllfigureitallout, Dec 2, 2024.

  1. Hello. In all views, I'm having problems with excess spacing before and after pricing tables. It shows up both as I edit on my Mac in desktop & phone views and as I preview on my iPhone.

    I have set the padding for the tables and rows to 0 and while it's helped a bit, it still leaves these humongous gaps. What am I missing?

    Also, my tables aren't equal in size. Is there a way to equalize their height? While I have few visitors who are on desktops, it still would be nice to have them consistent in size. Or is there a better tool to use instead of pricing tables?

    Thanks for your help!
    Bottom spacing.PNG
    Desktop view.png
    Top spacing.PNG
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade testimonial carousel design for your Divi site without using any plugins:View Demo
  2. Divi Booster

    Divi Booster Divi Expert

    Hey OnedayIllfigureitallout,

    If you're still having these issues, are you able to share a link to an example page?

    One way to equalize the heights of the pricing tables would be to set a minimum height on the titles that is at least as large as the height of the two line titles. If the individual elements in the pricing table have a standard height then so will the table as a whole, and it'll also mean that things like the button line up correctly. Again, if you're able to share a link we should be able to tell you how to do that (am I right in thinking that it's a third-party pricing table module, rather that the built-in Divi one?).
     
  3. Thank you for your help! I'd love to share a link, but the site is all in my staging area and I'm not sure how to do it. I've had this website for over 20 years, but this is my first time dealing with a staging area, so I feel like a complete noob.

    The pricing tables are the built-in ones. Your fix of setting the minimum height to twice the height of the two line titles worked so that's great.

     
    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom footer designs for you to choose from:View Demo
  4. Divi Booster

    Divi Booster Divi Expert

    You're welcome! I'm glad the title min height helped.

    No worries on the staging link. Of course, it's had to say for sure what's causing the gap without examining the page directly, but margin and padding are common culprits. You mentioned setting the paddings to 0. Maybe do the same with the margins and see if it improves things further. One way to track it down is to right-click in the middle of the gap and select "Inspect element" in the browser menu. Doing that should bring up the browser debug tools and highlight the element on the page which is responsible for the margin / padding filling the gap.

    Another thing that can cause this type of gap is the position settings, found in the advanced tab of the Section / Row / Module settings. The equivalent in CSS is the "top / bottom" properties. If these are set, they can offset the element from its surrounds, creating a gap. Try clearing them if set and see if that helps.
     
  5. Thank you again for the help! I checked the position settings and they're as they should be. I tried to right-click in the gap, but can't because the space isn't actually empty and maybe that's the actual issue? When I mouse-over the blank area, the pricing table "grows" to fill the space. It only does this on my computer, not my phone. I took a video: .

     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Beautify your Divi archive / category page with 15 different premade blog designs:Learn More
  6. Divi Booster

    Divi Booster Divi Expert

    Thanks for that. Yeah, it certainly looks like the gap is coming from the pricing table rather than anywhere else. Unfortunately, I still can't see enough to tell you what exactly is going on.

    One way to select an element, without triggering the hover effect, is using the "Inspect Element" button in the browser debug tools, e.g.:

    google-chrome-inspect-element-button.png

    Click it, then hover over the gap and it should highlight the affected element. Click on the element now and it should become selected in the debug tools elements tab. Now, in the debug tools, you should be able to see the CSS styles applied - hopefully you'll be able to spot the one creating the gap. Take a look at things like the height and min-height as well, which might be making the module larger than its (unhovered) content.

    If you still can't locate it, you could try re-creating the pricing table - keep checking on progress as you go and hopefully you'll either identify the change that is causing the issue, or it will work correctly and you can use it to replace the original.

    Good luck!
     
  7. Thanks! I found the button and when I have a chunk of time later tonight, I'll spend some time on it. I appreciate your help!

     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Tons of elegant premade sidebar styles to choose from for your Divi site:Learn More
  8. Divi Booster

    Divi Booster Divi Expert

    Good luck with it!