Home>Support>Delete padding between rows

Delete padding between rows

Dear Support Team.

I have read the other related post regardig this topic and put

+++
/* Set Page Builder bottom margin */

.panel-grid-cell {
margin-bottom: 0 !important;
}

.home-2 #main { /”-2″ because the page link is /*http://the-red-relocators.com/home-2
padding-top: 0px !important; /tried with 35px as with 0px
padding-bottom: 0px !important; /tried with 35px as with 0px
}
+++

into my Custom CSS.

I have tried with “.home #main” just as well. Further, I set the row styles as follows:
No bottom margin “activated”, bottom margin to “0”. No difference. The space between slider and first row as well as between rows remains.

I have also tried this: https://siteorigin.com/thread/too-much-white-space-between-rows-in-page-builder/ and most of the other Custom CSS suggestions. Nothing works.

Objective: I want to put images as background of a row and it looks aweful with white spaces inbetween the sections.

Any idea about how I could get this fixed other from the above?
I also use the vantage premium ()version 2.4.2) theme hence I assumed the above should be working with me just fine. My page builder plugin is up-to-date.

Kind regards
Kerstin

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 3 months ago Alex S
    Hi, I Work Here

    Hi Kluong,

    As you’re a Vantage Premium user, you’re entitled to priority email support – which is much faster than the forums. If you would like to make use of that, please follow the instructions found on this page. Please reference this thread.

    The following CSS doesn’t do what you want it to do:

    .panel-grid-cell {
    margin-bottom: 0 !important;
    }
    

    SiteOrigin Page Builder doesn’t apply bottom margin to the panel grid cell (which basically means it’s a column). It instead applies it to the parent row – .panel-grid. This means that the following CSS will do what you’re after:

    .panel-grid {
    margin-bottom: 0 !important;
    }
    

    It should however be noted that we instead recommend setting the bottom margin via the page builder settings which can be done at WP Admin > Settings > Page Builder and then open the layout tab. Set the row bottom margin to 0. This way you’re able to override this if desired as this setting is merely a default.

    The following CSS uses an invalid CSS selector.

    .home-2 #main { /”-2″ because the page link is /*http://the-red-relocators.com/home-2
    padding-top: 0px !important; /tried with 35px as with 0px
    padding-bottom: 0px !important; /tried with 35px as with 0px
    }
    

    Basically, WordPress won’t add the post / page slug as a body class. Body classes are easy methods of targeting specific pages. For example, as this page is marked as the home page it has the .home class attached to the body. Meaning if you removed -2 it would work as expected.

    It should however be noted that this CSS doesn’t remove spacing between rows and merely removes the standard Vantage content area padding (which is 35px). Here’s a visual example of what I’m talking about:

    The green area is the padding applied. Your CSS will remove the top and the bottom (not pictured) padding. It’ll look like this once it’s removed:

    Lastly, it should be noted that there still is padding being applied. To adjust this please open up the affected row by clicking the wrench above it and then navigate to the row styles sidebar. Open the layout settings group and set the padding to 0. I would not recommend a CSS method for this padding is quite needed. Regardless, you can use the following CSS to remove the vertical padding.

    .panel-row-style {
      padding: 0 20px !important;
    }
    

    Set the above padding to 0 to completely remove the padding – this is something we recommend even less as horizontal padding is very much desired for readability.

    Let me know if this helps. :)

  2. 8 years, 3 months ago kluong

    Thanks Alex,

    that helped – although only halfway. If I set the settings of page builder to 0 row bottom margin the home page looks nice, but obviously the settings are applied to all pages (I know the CSS solution does just as well, but I was trying to get closer to the targeted design).

    I believe defining a row class .panel-row-style.no-bottom-padding may work better since I want to adjust the row margins only on the front page where I would like to work with row colors and/or background images.

    I have also tried this in Custom CSS:
    /* Set Page Builder bottom margin */

    layout-full .panel-row-style.no-bottom-padding {
    margin-top: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    margin-bottom: 0 !important;
    }

    with selecting “no-bottom-padding” for “row class” under the respective row style settings (in pagebuilder element).
    This did not work. What would I need to change?

    Kind regards
    Kerstin

  3. 8 years, 3 months ago Alex S
    Hi, I Work Here

    Hi Kluong,

    Oh sorry, I ommited the .home from my final CSS. I meant:

    .home .panel-row-style {
      padding: 0 20px !important;
    }
    

    Regardless, regarding your CSS – that won’t work as layout-full is a class, not an element. So the following CSS will work as expected.

    .layout-full .panel-row-style.no-bottom-padding {
    margin-top: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    margin-bottom: 0 !important;
    }
    

    It should be noted that this will only be applied to whatever rows you add that class to (while obvious, I’ve still got to point that out).

  4. 8 years, 3 months ago kluong

    Alex? To me the second part looks exactly like the one I have quoted (but for the beginning . in front of “.layout-full”)

    And it is still not working properly. I am going to try setting up a topic in the above mentioned premium section…

  5. 8 years, 3 months ago Alex S
    Hi, I Work Here

    Being handled via Premium support.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More