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!
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025