Dear support,
i try to stretch the Logo background picture to 1900px max-width with the follwowing code. But it always sticks to 1500px width.
@media only screen and (min-width: 768px) {
.container.av-logo-container {
margin: 0 !important;
width: 100%!important;
max-width: 100% !important;
}
div .logo img, div .logo {
width: 100%;
height: auto;
max-width: 1900px!important;
}
Do you have a hint for me?
Hey dondela,
You are telling it to be 100% of the width of the container element, did you try to make the container wider instead?
div .logo img, div .logo {
width: 100%;
height: auto;
max-width: 1900px!important;
}
Best regards,
Rikard
Hey Rikard,
i had this code in my style.css. Now i transferred it to the quick.css of enfold and it works!
Do you understand why?
Anyway, thanks for your help, great support!
Hi,
Looking at the code you shared above, there is a missing closing curly bracket. That could be the reason why it might not be working. Code should be as following
@media only screen and (min-width: 768px) {
.container.av-logo-container {
margin: 0 !important;
width: 100%!important;
max-width: 100% !important;
}
div .logo img, div .logo {
width: 100%;
height: auto;
max-width: 1900px!important;
}}
Best regards,
Yigit