Hey guys,
Can you help me fix the header of my website on mobile? I want the width to be spaced correctly. So the my name/logo is closer to the left side, and the hamburger icon closer to the right.
I put the custom CSS that I have on my site in the private content. I think the issue/fix could be there.
Thanks!
Chris
Hey ccyran,
Could you post screenshots of what you are looking to achieve please? You can upload to a service like google drive or dropbox and then link to them here.
Best regards,
Rikard
Hey Rikard,
Sure thing. Here’s a link: https://ibb.co/eh7dGa
The header width currently looks too small. In my image on the right, thats how I want it to look.
Thanks!
Hi Chris,
Try adding this css code in Quick CSS (located in Enfold > General Styling):
@media only screen and (max-width:767px) {
.responsive #top #wrap_all .container {
width: 100%;
max-width: 100%;
}
}
Let us know if this helps :)
Best regards,
Nikko
That worked!
Last request! Is there also CSS to center the header? Right now it’s not in the middle. When viewed on mobile
Thanks :)
Hi,
You can add this custom CSS code:
@media only screen and (max-width:767px) {
.responsive .logo img {
margin-left: 40% !important;
}
}
Best regards,
John Torvik
Hey John!
Sorry I meant centered vertically!
Hi Chris,
Try adding this:
@media only screen and (max-width:767px) {
.responsive #top #wrap_all #header {
padding-top: 0 !important;
}
}
Hope this helps :)
Best regards,
Nikko
Perfect,
thanks!
Hi Chris,
Glad we could help. Thanks for using Enfold :)
Best regards,
Nikko