Left alignment of images in carousel - custom CSS not working
-
Hey there,
I tried using some CSS from a previous post on here to get my images to align to the left of the carousel but it doesn't seem to be working.
Here is a page from the website I'm working on as an example: https://fmagazine.info/acid-free-fair
And here is the code I tried:
.col .lay-carousel img.h100 { -webkit-transform: translateX(0%); -ms-transform: translateX(0%); transform: translateX(0%); left: 0%; }
I got the code from this post, which seemed to work for the original poster: http://laythemeforum.com:4567/topic/1524/left-aligned-pictures-in-carousel/4
I've played around with the different carousel sizes to see if this was the issue (both fixed height & aspect ratio of first element) to no avail.
Any insight as to why it might not be working for me?
Thanks!
-
Dear @watersigils
Does the following code work for what you need?
.lay-carousel-slide{ transform: translateX(-15%); }
Best wishes :)
Richard -
That seemed to work!
Of course the simplest answer... thank you so much :)
-
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it