[Resolved] Having problems centering certain content on mobile

Home Forums Support [Resolved] Having problems centering certain content on mobile

Home Forums Support Having problems centering certain content on mobile

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #2348993
    Justin

    My homepage header and recent blogs are not centered on mobile devices and I couldn’t figure out how to center the read more lable on the archive cards?

    #2349060
    Fernando
    Customer Support

    Hi Justin,

    Let’s tackle the “Header” first. To clarify, are you referring to the Page Hero? It’s the one apparent from my end that’s not centered and exceeding the Mobile Viewport. The paddings and margins or the Container Blocks are messing with its alignment.

    Can you try removing all paddings and margins on the Container Blocks holding it on mobile view. Example: https://share.getcloudapp.com/L1u9NgQw

    #2349790
    Justin

    I removed everything and it got a lot worse

    #2349926
    Ying
    Staff
    Customer Support

    Make sure you’ve clicked the mobile icon so the changes only apply to mobile.

    But when I inspect your site, all the margins/paddings are still there.

    Did you add them back?

    #2349969
    Justin

    I removed all paddings and margins on desktop view and mobile and kept them off

    #2349977
    Justin

    Never mind I saw I had it in another container as well

    #2349978
    Justin

    That fixed that issue

    #2349982
    Justin

    Just need figure out how to center the read more lable on the archive cards?

    #2350023
    Ying
    Staff
    Customer Support

    Try add this CSS:

    .dynamic-content-template p.read-more-button-container {
        text-align: center;
    }
    #2350040
    Justin

    That didn’t work

    #2350044
    Ying
    Staff
    Customer Support

    Did you clear the cache?

    #2350052
    Justin

    It only worked on one that I had a php code to add lable because I had a custom excerpt and it was removing it

    #2350070
    Ying
    Staff
    Customer Support

    I see, then change the CSS to:

    p.read-more-container, p.read-more-button-container {
        text-align: center;
    }
    #2350092
    Justin

    Nice that worked thank you

    #2350850
    Ying
    Staff
    Customer Support

    You are welcome 🙂

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