Site logo

Archived topic

Aligning elements on mobile

5 replies · Started by Erika on May 23, 2022

Viewing posts 1–6 of 6

Hey there,

#1
I have inline elements in the header of a website. Desktop they look good.

I´d like to align them UNDER each other on mobile. Is that possible? Or would there be another solution to place these elements near each other to the right in the top bar by using container and then set the widht on mobile to 100%?

#2
In the footer I have the copyright and a secondyary menu. I´d like to have them both centered on mobile. Menu displays well. Grid is set to center, but the html is not centered. Why? Sure I could give the p a class and center it by css, but I wonder why the grid vertical align does not work.

Thanks,

Erika

Hi there,

try adding this CSS to stack the inline elements:

@media(max-width: 768px) {
    .gb-container.inline-post-meta-area > .gb-inside-container {
        flex-direction: column;
    }
    .site-footer > div:last-child {
        text-align: center;
    }
}

Thanks, David. What about the alignement of grid content on mobile? Thank you :)

Awesome like always :) Thanks!

Glad to be of help!

This archived topic is closed to new replies.