Center the logo on mobile

how can I Center the logo on mobile and move it closer to the social media icons ?

Hello @rotation,

Please add this code in X > Theme Options > CSS:

@media (max-width: 767px) {
    .x-navbar-inner {
        text-align: center;
    }

    .x-brand {
        display: block;
        width: 100%;
        margin-top: 0;
    }

    .x-brand img {
        max-width: 320px;
    }
}

Here are some related links for further reading:

Hope this helps.

it did center the logo on mobile but it did not move the social icons closer to the top. How can I move them up ? Thanks

Hi @rotation,

Please update the previous CSS to this:

@media (max-width: 767px) {
    .x-navbar-inner {
        text-align: center;
    }

    .x-brand {
        display: block;
        width: 100%;
        margin-top: 0;
    }

    .x-brand img {
        max-width: 320px;
    }
    .x-navbar-inner .x-container.max.width {
        margin: 0;
    }
    .x-topbar .x-social-global {
        margin-bottom: 0;
    }
}

Hope it helps :slight_smile:

thanks I got it

You’re always welcome!

Cheers.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.