[Resolved] Is there a way to get the spacing smaller?

Home Forums Support [Resolved] Is there a way to get the spacing smaller?

Home Forums Support Is there a way to get the spacing smaller?

  • This topic has 12 replies, 3 voices, and was last updated 2 years ago by David.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #2173758
    Heath

    I am trying to see if there is a way to get the spacing smaller between the name an stats to where the stats will show up almost right underneath the name. I hope I am making sense on this. I included a screenshit of what I am referring to in the private window.

    #2173768
    Leo
    Staff
    Customer Support

    Hi there,

    It’s coming from the default margin-bottom: 1.5em set in the customizer.

    Is this still using the classic editor?

    If so you will need to add a class to that paragraph like no-margin then add this CSS:

    p.no-margin {
        bottom-margin: 0;
    }
    #2173823
    Heath

    I do not believe I am using the Classic editor.

    #2173826
    Leo
    Staff
    Customer Support

    The solution above would work even if you are using a block editor with a paragraph block.

    Or you can consider using a headline block from GB and set the bottom margin to 0:
    https://docs.generateblocks.com/article/headline-overview/
    https://docs.generateblocks.com/article/headline-overview/#spacing

    #2173893
    Heath

    If I do the steps as outlined above…. that wouldn’t change it on every post would it?

    #2173977
    Leo
    Staff
    Customer Support

    No. That’s what adding the custom CSS class no-margin for – only the paragraph with that class would change once the CSS is added.

    #2175120
    Heath

    This does not work for me.

    #2175131
    Heath

    Is there a way to put the smaller text beside the large text as I tried to illustrate in the screenshot?

    The CSS along with the CSS Class is not working for me.

    #2175422
    David
    Staff
    Customer Support

    Hi there,

    to make these kinds of changes you will need to add some CSS Classes to your blocks.

    1, Add this CSS to your Customizer > Additional CSS.

    .player,
    .player-stats {
        display: inline;
    }

    2. Select the text block with the Player Name – and in Advanced > Additional CSS Classes add: player
    Select the text block with the stats and give that a CSS class of player-stats

    #2175901
    Heath

    Thanks David. I’d therr a way to instead of the stats being on the same line to get them under the player name without the big gap of white? I’d like them to be closer together.

    #2176228
    David
    Staff
    Customer Support

    In that case you still need to give the player name a class of player as have.
    Then add this CSS:

    p.player {
        margin-bottom: 0.25em;
    }

    Adjust the margin as you need.

    #2194139
    Heath

    Thanks!

    #2194356
    David
    Staff
    Customer Support

    You’re welcome

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