Hello there,
I have integrated an image with the full-screen Easy Slider on a website.
Mobile this has a minimum height of 430px.
As the image is now naturally wider than the mobile viewport, Enfold always shifts the image with “left: -410.667px”.
I would now like to adjust the alignment similar to the fullwidth slider, e.g. with top centre. Unfortunately, all attempts in the dev tools to adjust the img element with object-position did not work.
What other way is there to align the image in the slider elements?
Kind regards
Bernd
Hey boehmmedia,
I’m not sure that I fully understand your intentions. Could you post a screenshot highlighting what you would like to achieve please?
Best regards,
Rikard
Hi Rikard,
the subpage pasted in private link was not a good example :-(
Please see new link.
As you can see, the couple in the mobile view is at the top left of the picture. You can mainly see the seat basket.
I would now like the couple to be more central again – as it is in the desktop view in the picture.
That’s why I thought i could use object-position to align the image accordingly.
Of course, I could manually adjust the ‘left’ value for each image in each slider. But that is too complicated.
Hope my intention is more clear now :-)
Kind regards
Bernd
Kind regards
Hi,
Thanks for that. You can try to adjust the image using this CSS:
@media only screen and (max-width: 767px) {
.av-m2t0bor4-75e1606503b18cd78e39619ca0beef30 li img {
left: -150px !important;
}
}
Best regards,
Rikard
Hi Rikard,
the code worked. Thanks for it.
Is there no more global solution for all elements?
Kindly
Bernd