All things Shopify and commerce
I have a problem centering the images in slideshow on desktop where they are sticked to the left.
On mobile phone there is no issue.
I use this css in the slideshow custom css to resize the image, but dont know how to center it without it being bad on mobile:
.banner__media.media {
background-color: transparent !important;
}
img {
height: 100%;
width: auto;
justify-self: center !important;
}
this is the slideshow: Sizing Guide – Conquer Club
Thanks everyone for help
Solved! Go to the solution
This is an accepted solution.
I'm sorry. I didn't notice that I've written tranform. Replace it with transform
hi, @conquerclub
Please send me Website URL
Add this to the custom css:
img {
left: 50%;
tranform: translateX(-50%);
}
if it doesn't work, try
img {
left: 50% !important;
tranform: translateX(-50%) !important;
}
Image jumps from left to 50% in editor but when I hit save it says:
and cant be saved
can you show me a screenshot of how you are inserting it before saving the theme customizer?
Yes that might be the problem, cause I dont know how, ive tried these variants:
.banner__media.media {
background-color: transparent !important;
}
img {
height: 100%;
width: auto;
}
img {
left: 50%;
tranform: translateX(-50%);
}
and then this:
.banner__media.media {
background-color: transparent !important;
}
img {
height: 100%;
width: auto;
left: 50%;
tranform: translateX(-50%);
}
this is the only thing changed when the customizer says taht you can't save?
Yes, currentzly it saved like this:
.banner__media.media {
background-color: transparent !important;
}
img {
height: 100%;
width: auto;
}
and saving works
This is an accepted solution.
I'm sorry. I didn't notice that I've written tranform. Replace it with transform
Oh yes, thank you now its working you magician!
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey 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, 2024