Site logo

Archived topic

Footer isn't centered

17 replies · Started by Huseyin on April 29, 2020

Viewing posts 1–15 of 18

Hi there,

Everything looks centered in your screenshot to me.

Do you want the menu items in the footer widget to center or something?

Hi there,

temporarily add this CSS:

.footer-widgets .widget-title {
    background-color: #ccc;
}

It's an easy way of seeing that each of your widgets are 20% wide and that the row is actually centred on the page.

What you're asking is effectively to break the 20% width and allow some footer widgets to be wider than others - which you can do with this CSS:

@media(min-width: 1025px) {
    .site-footer .footer-widgets-container .inside-footer-widgets {
        display: flex;
        justify-content: space-between;
    } 
    .site-footer .footer-widgets-container .inside-footer-widgets .grid-20 {
        width: unset;
    } 
}

thank you David

You're welcome

Thanks, David

For the past 10 minutes, I played with the number for min-width: couldn't succeed.

Try this CSS:

@media (max-width: 1024px) and (min-width: 600px) {
    .site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets {
        display: flex;
        flex-wrap: wrap;
    }

    .site-footer .inside-footer-widgets>div {
        width: 50%;
    }
}

legend thanksss

You're welcome

Try this:

@media (max-width: 1024px) and (min-width: 600px) {
    .footer-widgets .inside-footer-widgets {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .site-footer .inside-footer-widgets>div {
        flex: 1 1 50%;
        margin-bottom: 2em;
    }
}
This archived topic is closed to new replies.