Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

margin/padding-issue

  • Hi. Working on this setup for a “before header”-hook.
    -Container (full width)
    –Inner container
    —social icons

    Wanted padding over/under, but adding any low digit (like 10) creates a much larger padding.
    What am I missing, no margins and paddings set in outer container?

  • Hi there,

    It’s because WP adds a default margin-bottom to the social block.

    Try adding this CSS to remove the default margin from the social block:

    ul.wp-block-social-links {
        margin-bottom: 0 !important;
    }

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

    Then you can add padding-top and padding-bottom to the inner container.

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