• I have added a advanced button block but it has too much top margin which is being set with:
    margin-top: var(--global-md-spacing);

    Even adding a negative top margin into the “container margin” gets over written by the above.

Viewing 5 replies - 1 through 5 (of 5 total)
  • hannah

    (@hannahritner)

    Hi @vermit
    Can you post a link?
    Thanks!

    Hannah

    Thread Starter vermit

    (@vermit)

    The site is not live yet, would you be able to offer any advice on why this is happening?

    hannah

    (@hannahritner)

    Try adding this to your custom css:

    .single-content .wp-block-kadence-advancedbtn {
        margin-top: 5px;
    }

    Does that remove the extra spacing?

    Hannah

    Thread Starter vermit

    (@vermit)

    That’s what I had already tried, but was wondering where the
    margin-top: var(--global-md-spacing); is coming from.
    I was able to over-ride it for now by using the important property on the margin-top.

    Hmm, I think I will change how that works with an update. You should be able to override default spacing with the block settings.

    Ben

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Advanced button margin not working’ is closed to new replies.