Site logo

Archived topic

Element Alignment

4 replies · Started by Paul on February 10, 2019

Viewing posts 1–5 of 5

Hi,

What's the best method to keep all elements vertically aligned - top bar widgets, logo, primary nav, content, and footer widgets.

By default, the top bar widgets, logo, primary nav (via left/right link padding), and content do not align. See -

Below 1140px, while the logo and content are aligned, the top bar widgets and primary nav are not.
See -

How can I keep these elements aligned until the mobile layout is invoked below 767px?

Thanks,
Paul.

Hey Paul,

Give this a shot:

@media (min-width: 769px) {
    .inside-header {
        box-sizing: border-box;
    }

    .inside-top-bar, 
    .inside-footer-widgets, 
    .inside-site-info, 
    .inside-navigation {
        padding-left: 40px;
        padding-right: 40px;
        box-sizing: border-box;
    }

    .inside-navigation {
        padding-left: 20px;
        padding-right: 20px;
    }
}

Hi Tom,

Perfect! Thanks for the quick reply :)

Paul.

You're welcome :)

This archived topic is closed to new replies.