Hello, My image banner ist blurry. Can someone write me the code for it?
https://heimatliebe24.de/
pw: yeegia
A user reports their image banner appears blurry on their Shopify store and requests CSS code to fix the issue.
Proposed Solutions:
min-height: inherit, position: absolute, and transform: translate to control banner renderingTechnical Context:
Status: The discussion remains open with multiple technical solutions offered but no confirmation of resolution from the original poster.
Hello, My image banner ist blurry. Can someone write me the code for it?
https://heimatliebe24.de/
pw: yeegia
Hi @Chefhkoch22 ,
May I suggest to update code these steps:
#Banner-template--24108226871623__image_banner {
min-height: inherit;
}
#Banner-template--24108226871623__image_banner .banner__media img,
#Banner-template--24108226871623__image_banner .banner__media {
position: static;
}
#Banner-template--24108226871623__image_banner .banner__content {
height: 100%;
position: absolute;
top: 50%;
left: 50%;
width: 100%;
min-height: inherit;
transform: translate(-50%,-50%) !important;
}
Hi @Chefhkoch22
Shopify will automatically resize your image based on the width of the screen to optimize speed of store. If you don’t want it to be resized, you can change the code of the image banner.liquid file.