Dear Sirs,
i wanted to make the main logo bigger and overflow the header container on both sides with the following CSS:
.logo a {
margin-top: -10px;
}
.logo, .logo a, .logo img {
overflow: visible;
max-height: 110px important!;
}
#header_meta { z-index: 1; }
The problem is, that the property max-height doesnt go from 90 to 110 and when scrolling the header resizes but the logo doesnt resize with it accordingly.
Any ideas how to solve that?
Thank you so much.
Tomi
Hey tomipro,
Just to have sure about your question: Do you want to have the same logo size while the header is resized?
Best regards,
John Torvik
Hey John,
no I would like to have the logo resize accordingly.
Thank you, br,
Tomi
Hi Tomi,
It looks like the exclamation mark in the !important rule is in the wrong place. Can you try this instead, for the middle part of your code:
.logo, .logo a, .logo img {
overflow: visible;
max-height: 110px !important;
}
Also, for your reference, when the header is scrolled, it takes the class header-scrolled
. So if you want, you can use this in your CSS:
.header-scrolled .logo, .header-scrolled .logo a, .header-scrolled .logo img {
CODE HERE
}
Best regards,
Sarah