Site logo

Archived topic

Add space between columns without adding space at the top

9 replies · Started by Mireille on February 17, 2021

Viewing posts 1–10 of 10

I am trying to add some space between blog columns. When I add it with the customizer settings, I also get extra space at the top - something I do not want. Any suggestions about controlling the vertical and horizontal spacing separately?

Hi there,

add the spacing in the customizer, then add this CSS to reduce the bottom margin from the articles:

.generate-columns-container .generate-columns {
margin-bottom: 10px;
}

Nope. I had tried that. I just gave it 10px in the customizer and added:

`.generate-columns-container .generate-columns {
margin-top: 0px;
}

I still get 10 extra px at the top.

Hi Mireille,

I haven't seen the margin-top: 0px; has been added in your site.

This CSS should work, I tried it in developer tool, as you can see once the CSS is added, the top margin is gone.
https://www.screencast.com/t/ozwOybGCb

OK. I guess I was not precise enough... It throws that 10px everywhere including top of page. Look at the homepage. I just put the space and margin: 0px back in until I hear back. It is a live site ;)

Sadly it does not fix the top of "page" problem.

Oh I see what you mean, try this CSS then:

.separate-containers #main.site-main {
    margin-top: 0;
}

And that's what makes the magic happen!!! Thanks.

Great!

You are welcome :)

This archived topic is closed to new replies.