Site logo

Archived topic

Want to remove space from container top

4 replies · Started by Sabbir on March 9, 2022

Viewing posts 1–5 of 5

Hi,

I want to remove spaces from the container top.

Hi Sabbir,

The WP columns block adds a margin bottom by default:
https://www.screencast.com/t/POrxv98bO

As you are already using GenerateBlocks plugin, try using Grid block from GB instead of the WP columns block.

I tried. but result same

Hi Sabbir,

That space in your screenshot is space for CSS classes. You shouldn’t place CSS code there.

For it to work, you can place a CSS class of your preference there and add your CSS code targeting the class in Appearance > Customize > Additional CSS.

For instance, I added remove-bottom-margin here: https://share.getcloudapp.com/2NuzKb1p

And then added this code in Additional CSS:

.remove-bottom-margin {  
    margin-bottom: 0 !important; 
}

Here is an article with regards to adding CSS: https://docs.generatepress.com/article/adding-css/#additional-css

As mentioned, adding it through additional CSS should work.

Hope this clarifies. Feel free to reach out if you’ll need further assistance with regards to this. :)

This archived topic is closed to new replies.