[Resolved] CSS to reduce the Columns Space

Home Forums Support [Resolved] CSS to reduce the Columns Space

Home Forums Support CSS to reduce the Columns Space

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1113885
    purnima banik

    Hi Tom,

    I want to reduce the space between the columns horizontally and also the space in between the next column row vertically. All of the columns on my webpage are created with block editor. Please Suggest the Solution to achieve the desired result. I want to achieve this on this webpage is Here.

    #1114044
    Leo
    Staff
    Customer Support

    Hi there,

    You can try some CSS like this:

    @media (min-width: 782px) {
        .wp-block-column:not(:first-child) {
            margin-left: 20px;
        }
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #1114110
    purnima banik

    That worked fine to reduce the spaces between the column, but I also wanted to reduce the gap between the row as well, I mean horizontally.

    #1114282
    David
    Staff
    Customer Support

    Hi there,

    try this CSS:

    .wp-block-columns {
        margin-bottom: 0 !important;
    }
    
    .wp-block-column p {
        margin-bottom: 0.5em !important;
    }
    #1114495
    purnima banik

    Thank You, that worked perfectly.

    #1115016
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.