Site logo

Archived topic

search icon, mobile logo and menu icon in one line

13 replies · Started by dassana on November 16, 2018

Viewing posts 1–14 of 14

hi

i am trying to get the search icon, mobile logo and hamburger menu icon in one line on mobile and tabs. but not able to do with the various css. currently on both mobile and tab, the search icon and menu icon are displayed below the logo. i am using a separate mobile logo. tried various css options, but could not get it done. if would be nice if you can help me with the css code to display these three elements in one line. i want the search icon on left and mobile icon on right of the mobile header image.

Hi there,

Any chance you can remove the browser tools blocker as it makes it difficult for us as it just adds lots of time in testing the solution. Let me know :)

So swap this CSS:

.site-logo {
    width: 425px;
}

For this:

.site-logo:not(.mobile-header-logo) {
    width: 425px;
}

i added the code, but the menu icon stays below and the search icon is aligned with the mobile logo.

Where did you add the code, i can still see the original code ( first code above ) ?

i removed it. thats why you cannot see it.

Can you re-add the code David provided so we can see why it's not working?

Awesome, now try adding this:

#mobile-header .mobile-header-logo {
    max-width: 50%;
}

hi tom

i added this code, but it squishes the mobile header logo image.

You can try setting the image height to auto to prevent any aspect ratio loss:

#mobile-header .mobile-header-logo {
    max-width: 50%;
}

#mobile-header .mobile-header-logo img {
    height: auto;
}

thanks a lot tom. worked great.

Awesome glad I could help :)

This archived topic is closed to new replies.