Site logo

Archived topic

Navbar logo not responsive on mobile

7 replies · Started by Noemi on December 10, 2018

Viewing posts 1–8 of 8

Hi,

The navbar logo is on the upper left- how do I center align the logo on mobile?

I'm using child theme

Leo,

I tried your suggestion # 2, but the navbar logo still looks non-centered and there's a huge gap in Mobile.

Please help with CSS to shorten the menu/navbar in mobile without reducing size of navigation logo— If you look through mobile, you can see the large gap between logo and the "menu"-icon. How to reduce this large gap without making logo smaller.

My current CSS is:
.main-navigation .navigation-logo {
padding-top: 0px;
}
.main-navigation .navigation-logo img {
height: 100px;
}
.site-header {
padding-top: 0;
padding-right: 0;
}
.main-navigation .main-nav > ul > li:first-child > a {
padding-top: 8px;
}
#site-navigation {
background: rgb(2,0,36);
background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
}

a) In mobile, Is there a way for me to center the 3 lined-menu below the logo? (Without changing the way it currently looks on desktop)

b) Also, if you look close, there are thin vertical borders around the logo, and I would like to remove these. I put in the CSS code for the gradient background yesterday. I don't want to necessarily stretch the logo disproportionately!

a) I did not use the Hooks element (not sure where to find it). I just disabled the the Header under Disable Element-settings. In addition, I also used CSS code: .site-header {
padding-top: 0px;
}

b) Oh Okay, thank you. I photoshopped logo to make the transparent background, but it's still showing... Do you have any recommendations?

Thank you,

This archived topic is closed to new replies.