[Resolved] Stretch button in mobile?

Home Forums Support [Resolved] Stretch button in mobile?

Home Forums Support Stretch button in mobile?

  • This topic has 7 replies, 3 voices, and was last updated 4 years ago by David.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1225673
    Andy

    Hi there,

    I’m using GenerateBlocks.

    Buttons look fine in Desktop.

    How do I stretch it out (horizontally) in mobile? I’ve tried adding padding under spaces, but it just squeezes the text.

    View post on imgur.com

    Thank you,
    Andy

    #1225675
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can edit the original topic and use the private URL field.

    Let me know 🙂

    #1225679
    Andy

    Please check the hidden link now (on your mobile device). Thanks!

    #1225706
    Leo
    Staff
    Customer Support

    Try this CSS:

    @media (max-width: 768px) {
        a.gb-button {
            flex: 1;
        }
    }

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

    #1225716
    Andy

    Hey Leo, I added that, please check, it did not work.

    #1225749
    David
    Staff
    Customer Support

    Hi there,

    select the Buttons Container:

    https://docs.generateblocks.com/article/buttons-overview/#button-container

    Then on the Mobile tab you can select the Fill Horizontal Space option

    #1225751
    Andy

    Hell yes! Thank you

    #1226012
    David
    Staff
    Customer Support

    Glad to be of help

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