Site logo

Archived topic

How to align Mobile Footer menu to center

11 replies · Started by Amit on September 7, 2020

Viewing posts 1–12 of 12

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?

Hi there,

try this CSS:

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

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.

Where did you add the CSS?

In the customize>css

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.

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

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;
    }
}

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%;
    }
}

Glad to hear :)

This archived topic is closed to new replies.