Shopify themes, liquid, logos, and UX
Please help me with the css, to fill the gaps right and left without changing the size of the image (gif)
Pass: biangu
Solved! Go to the solution
This is an accepted solution.
Hey @MT27,
You should try this. I think this is as far as I can customize it with CSS only
@media only screen and (max-width: 759px) {
section#shopify-section-template--18448488431883__image_banner_JL4YDe .banner__media.media {
background-color: black;
}
section#shopify-section-template--18448488431883__image_banner_JL4YDe .banner__media.media img {
max-width: 60%;
left: 50%;
transform: translateX(-50%);
}
}
Hey @MT27,
Are all the negative margin values added by you?
yes
I see, generally it's not a good idea to do that because it causes unexpected behaviours. Let me look into it and give you a solution.
Hey @MT27,
This should work out for you. Paste this into the Custom CSS and test it.
@media only screen and (max-width: 759px) {
#shopify-section-template--18448488431883__image_banner_JL4YDe .banner__media.media {
margin-bottom: 0px !important;
margin-top: 0px !important;
}
#shopify-section-template--18448488431883__0d36fe3e-71e5-4265-b621-f33e9f51b4b0 .banner {
margin-bottom: 0 !important;
}
#shopify-section-template--18448488431883__image_banner_JL4YDe div#Banner-template--18448488431883__image_banner_JL4YDe {
min-height: 18rem !important;
}
}
Hi, it took the image (the gif spinning) down rather than feeling the gaps left and right. I want the gif to stay at the height bc I want to cat that part of the main banner.
This is an accepted solution.
Hey @MT27,
You should try this. I think this is as far as I can customize it with CSS only
@media only screen and (max-width: 759px) {
section#shopify-section-template--18448488431883__image_banner_JL4YDe .banner__media.media {
background-color: black;
}
section#shopify-section-template--18448488431883__image_banner_JL4YDe .banner__media.media img {
max-width: 60%;
left: 50%;
transform: translateX(-50%);
}
}
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024