Hello,
I have a problem with my logo in the header:
I want to center that logo with the search & menu icon on the right.
In an older topic i found a solution (fast CSS) and it works fine (http://gerwen.nl/site/wp-content/uploads/2020/08/1.jpg).
But on smaller screens the logo is cropped on both sides (http://gerwen.nl/site/wp-content/uploads/2020/08/2.jpg).
How can i solve this?
Thanx for the answer.
Theodor!
————————-
Easy CSS:
/*logo-top*/
.logo img {
display: none;
}
.logo {
background: url(‘https://gerwen.nl/site/wp-content/uploads/2020/07/gerwen-online-en-offline-reclame-logo600.svg’) no-repeat;
width: 600px;
}
#top div .logo {
float: none;
position: absolute;
left: 50%;
top: 15%;
z-index: 1;
transform: translate3d(-50%, 0, 0);
}
Hey Theodor,
Please use a smaller image for mobile’s logo, then you can use this CSS code:
@media only screen and (max-width:767px) {
.responsive #top .logo {
background-position: center center;
display: block;
width: 100%;
transform: none;
}
}
Best regards,
Nikko
Hey Nikko,
Thans for the answer.
Is it possible to use an different logo for only the (smaller) mobile-devices?
Or shall i resize the logo for all the screens?
Logo is now 600 px width. When i resize it, it must be around 200 px te show complete on a mobil screen.
For a desktopscreen is that very small.
Hi gerwenreclame,
I have checked your site and the logo seems to be properly placed.
I was actually suggesting to only have the circle logo without the words on the left and right but I think the current look is good enough.
Best regards,
Nikko
I wasn’t able to fix the problem, so i placed the logo on the left instead of center (in original place, no easy CSS)
On that way the problem is solved.
Thanks.
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon