Site logo

[Resolved] Mobile Spacing Issue with Centered Buttons in a 3 Column Layout

Home Forums Support [Resolved] Mobile Spacing Issue with Centered Buttons in a 3 Column Layout

Home Forums Support Mobile Spacing Issue with Centered Buttons in a 3 Column Layout

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1892214
    Christina

    Hi guys, I’m new to creating Elements and I’m trying to create an element that showcases the best content relevant to a particular category.

    I’m running into some spacing issues though with regards to a 3 column set up filled with buttons. I’m talking about the Star Wars quotes section seen here (starting underneath the “Click to read our top 100 Star Wars quotes) button): https://geektrippers.com/category/star-wars/

    Especially on mobile, it seems like the buttons in the 3 columns are shifted to the right for some reason, and not centered as I would like. I’ve spent AGES trying to figure out the issue but nothing seems to fix it. Could you take a look and let me know if I’m missing something obvious? Thanks so much!

    #1892307
    Leo
    Staff
    Customer Support

    Hi Christina,

    You are using the buttons block from WP core currently.

    Can you try using the buttons block from GB first?
    https://docs.generateblocks.com/article/buttons-overview/

    Then maybe this option would work for you:
    https://docs.generateblocks.com/article/buttons-overview/#fill-horizontal-space

    #1892360
    Christina

    Hi Leo, thanks for the reply! I swapped over to the GB buttons but they’re still *slightly* off center… only really noticeable on Mobile view.

    #1892363
    Leo
    Staff
    Customer Support

    I’m still seeing the core blocks and not GB blocks:
    https://www.screencast.com/t/cTDLkoMi5hL

    I’m guessing it’s a caching issue so please clear and disable your caching plugin while we are trying to help.

    If you use the buttons block from GB then you shouldn’t need to use the columns block.

    #1892382
    Christina

    Hi Leo, so I’ve cleared the cache now but I’m still seeing the slight off-centeredness in the buttons, even without columns. Also, if using GB without columns, is there a way to specify how many buttons will appear per row? At the moment they’re all clustered together on Desktop and I’d like to specify how many go in each row.

    #1892415
    Ying
    Staff
    Customer Support

    lso, if using GB without columns, is there a way to specify how many buttons will appear per row?

    Yes, it depends on how many Buttonyou added to the Buttonsblock. Currently, you put all the Buttonin one Buttons block.

    Try separate the buttons into different Buttonsblock.

    Let me know 🙂

    #1892472
    Christina

    Hi Ying, thanks SO much! Okay it looks much better now. The final problem that remains is still that the buttons are off-center in mobile view, but only slightly. I’m not sure what’s causing this. Would you be able to take a look?

    #1892479
    Ying
    Staff
    Customer Support

    Can you try to remove the left and right margin for the button on mobile?

    Let me know how it works 🙂

    #1892546
    Christina

    Hi Ying, removing just the left margin weirdly did the trick. Thank you so much for your help!!

    #1892600
    Ying
    Staff
    Customer Support

    You are welcome 🙂

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