[Resolved] How to shorten a Paragraph’s Colored Background to the length of the Paragraph?

Home Forums Support [Resolved] How to shorten a Paragraph’s Colored Background to the length of the Paragraph?

Home Forums Support How to shorten a Paragraph’s Colored Background to the length of the Paragraph?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1359599
    Downtown Spanish

    Hi,

    I would like to shorten the extra gray space before and after the phrase “Expande tus Fronteras”.

    I am using the grey colored background but I only want that colored background to extend the length of the phrase and not the whole length of the picture. Is there something I can do?

    https://ibb.co/Hdc2t35

    #1359695
    Leo
    Staff
    Customer Support

    Hi there,

    Can you link me to the page where the issue can be seen?

    The link you provided isn’t working.

    #1359696
    Downtown Spanish

    Yes, dear Leo

    I hope this one works:

    https://downtownspanish.com/contact/

    #1359709
    Leo
    Staff
    Customer Support

    Hmm it’s not easy to do with the block you are using.

    Try using this CSS:

    p.has-very-dark-gray-background-color {
        display: inline-flex;
    }
    .page-id-31 .wp-block-cover {
        text-align: center;
    }

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

    #1359743
    Downtown Spanish

    Thanks bud! It worked

    #1360201
    Leo
    Staff
    Customer Support

    No problem 🙂

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