[Resolved] How to align Mobile Footer menu to center

Home Forums Support [Resolved] How to align Mobile Footer menu to center

Home Forums Support How to align Mobile Footer menu to center

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1433606
    Amit

    I’ve tried the Footer menu layout to center, left and right. But the footer nav links align themselves to right on mobile and I can’t just figure out what’s wrong. How can I center them?

    #1433670
    David
    Staff
    Customer Support

    Hi there,

    try this CSS:

    @media(max-width: 1024px) {
        .site-info .inside-site-info {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
    }
    #1433941
    Amit

    Nothing happened David with this code. I hope you got what I needed – the nav items About, Privacy, Terms, Coffee Blog and Contact links at the bottom right of screen. This are not aligned properly on mobile.

    #1434151
    David
    Staff
    Customer Support

    Where did you add the CSS?

    #1434262
    Amit

    In the customize>css

    #1434469
    Tom
    Lead Developer
    Lead Developer

    Can you disable any caching/minifying plugins so we can inspect your code? Right now it doesn’t seem like the code David provided is applying to the element.

    #1436318
    Amit

    I am so sorry for being late…You can check now

    #1436463
    David
    Staff
    Customer Support

    It looks to be working now – try clearing your browser cache to see.

    I have also updated the CSS here:

    https://generatepress.com/forums/topic/how-to-align-mobile-footer-menu-to-center/#post-1433670

    To make a little more ‘specific’ which should overcome any issues the Cache is causing.

    #1436802
    Amit

    I still see the footer bar items as right aligned – https://paste.pics/efb54e76eb8cdf677dd4f215275b8371

    #1436839
    Leo
    Staff
    Customer Support

    Try this CSS as well:

    @media (max-width: 768px) {
        .footer-bar .widget_nav_menu li:first-child {
            margin-left: 10px;
        }
        .footer-bar .widget_nav_menu li:last-child {
            margin-right: 10px;
        }
    }
    #1437454
    Amit

    Hey Leo, this one worked up. I tweaked it a little as since the code was working dynamically –

    @media (max-width: 768px) {
        .footer-bar .widget_nav_menu li:last-child {
            margin-right: 8%;
        }
    }
    #1437456
    Leo
    Staff
    Customer Support

    Glad to hear 🙂

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