Hi. I am struggling having my logo vertically centered on the header.
My logo size is 170×32.
The logo is vertically centered on mobile size only, when screen size is <=767 pixels.
From 768 to 989, I still have burger menu, but the logo is aligned to top.
On 990 and above, burger menu disappears, and the logo is still aligned to top.
Tested with Chrome and Firefox.
In the past I’ve tried playing with the top-padding value, but it was not working always well. I’d like to have a clean solution if possible…
Adding info to access the website in Private area.
Thanks in advance!
Hey Angelo,
Thank you for the inquiry.
Please add this css code to adjust the alignment of the logo on all screen sizes.
.logo, .logo a {
display: flex;
align-items: center;
}
.logo img.alternate, .logo .subtext.avia-svg-logo-sub svg {
position: relative;
}
.logo .subtext.avia-standard-logo-sub {
display: flex;
align-items: center;
height: 100%;
width: 170px;
position: absolute;
}
Best regards,
Ismael
Thanks Ismael, it works perfectly. I dare to suggest that you should add a specific option in the configuration, I think it is quite normal to have the Logo vertically centered.
Bye!
A.-
