Hello,
I have used the CSS code for placing the logo on the left side of the title and slogan, but on mobile the logo is pushed under the title and slogan and it pushes them up into the header image.
I’d like the logo on top and everything centered on mobile, but the code examples on here aren’t working.
This is my css:
.site-header {
background-color: #222222;
background-size: 100% auto;
}
.site-branding {
display: inline-block;
}
.site-logo {
float: left;
margin-right: 10px;
}
#mobile-header .site-logo {
position: absolute;
left: calc( 50% - 90px); /* 50% from the left - half your image width */
}
#mobile-header button.menu-toggle {
position: absolute;
left: 0;
}
This is how it look on a Desktop:
And this is the broken mobile view:
Any help or suggestions are appreciated
Thanks,
James