Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there,

    try this CSS to centre the logo between the nav and search icon

    @media(max-width: 768px) {
        .site-header .header-image {
            position: absolute;
            top: 15px;
            left: 50%;
            transform: translateX(-50%);
        }
    }

    Box shadow – change your CSS to this:

    .inside-article, .sidebar .widget, .comments-area {
        box-shadow: -4px 4px 7px rgb(30, 115, 190 );
        transition: box-shadow 500ms ease;
    }

    Sidebar widgets:

    .sidebar .widget {
    padding: 0 30px 30px !important;
    }

    .sidebar .widget-title {
        padding: 15px 30px;
        margin-left: -30px;
        margin-right: -30px;
        background-color: #1e73be;
        color: #fff !important;
    }
    Thread Starter vonaj

    (@vonaj)

    Many thanks David! It worked like a charm!!!

    Any chance I can further reduce the header height on mobile?

    Thread Starter vonaj

    (@vonaj)

    I’d also like to remove the “Menu” text beside the menu icon. On smaller screens it overlaps with the logo.

    Thread Starter vonaj

    (@vonaj)

    Also I’d like the menu icon and search icon a little bit bigger

    You could try this:

    @media (max-width: 768px) {
        .site-header {
            margin-top: -25px;
        }
        span.mobile-menu {
            display: none;
        }
        .menu-toggle, .search-item a:before {
            font-size: 20px !important;
        }
    }
    Thread Starter vonaj

    (@vonaj)

    Perfect! Thanks a lot Leo. And thanks to you both for the swift response.

    No problem 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Customize header, navigation and containers with CSS’ is closed to new replies.