Space between rows

Hello, a few updates ago you removed the check box to remove margins between rows. Now I have to mess with padding and margins to get it right. The problem is, in mobile view it makes content overlap.

There must be another way. Let me know.

Hi @gallagherBD,

Thank you for writing in, but what checkbox you’re referring to? Are you referring to the Remove Spacing option of the Section? If so, you can access it now by right-clicking the Section.

Are you using negative margins? If so, please reset those to 0, because negative margins are not good for mobile views and one common issue is the overlapping of elements.

You can also use the Utility Classes for setting margin and padding to your custom element (see midway on this doc)

Cheers!

Hello @firech, thanks for responding.

The “remove Spacing” check box has not been an option in XTheme for months. Also, I just added MTN as a class above the layerslider and there is still a huge margin.

I need another option.

Hello @gallagherBD,

Thanks for updating the thread.

Can you please share website URL so we can take a closer look at the setup?

Thanks.

http://markpainting.gallagherbd.com/

Below the header and the spaces between all other rows.

Hello @gallagherBD,

Thanks for updating the thread. :slight_smile:

To remove the spacing below header, you can add following CSS under X > Theme Options > CSS:

.x-container.offset {
    margin-top: 0;
}

.x-main.full {
    margin-top: 0;
}

I see you are using Visual Composer and the spacing is coming from the VC row setting. Please take a looka t following tutorial to remove the spacing:

You can also add following CSS under X > Theme Options > CSS if you prefer custom CSS option:

.wpb_content_element {
    margin-bottom: 0;
}

1- I have found the proper CSS code selector using the Chrome browser Developer Toolbar: https://www.youtube.com/watch?v=wcFnnxfA70g

2- For the CSS code itself, I suggest that you get started with this tutorial: https://www.youtube.com/watch?v=yfoY53QXEnI

Thanks.

This is perfect. Thanks everyone!

You’re welcome. Glad we’re able to help.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.