center "loop & merge" images | XM Community
Question

center "loop & merge" images

  • 29 October 2020
  • 2 replies
  • 8 views

Userlevel 2
Badge

Hi everyone
I'm trying to center images. I tried a lot of codes I found, but nothing works.
The preference is to use HTML or JavaScript rather than CSS because the center is for a specific question.
In the question, the URL of the images appears in LOOP & MERGE so I do not have the specific name of the image to write in the code.
Examples of what I already tried:



.center {
display: block;
margin-left: auto;
margin-right: auto;
}



Any suggestions?
Thanks a lot!


2 replies

Badge +3

Hi NoaVardi ,
Can you share a snapshot of how it looks currently? Have you tried adding HTML center tag.
For e.g.:


Userlevel 2
Badge

now it is look like this:
image.pngI do not know how I can use such a tag, because I have a lot of images, each with a different URL (it's in loop & merge):
image.png

Leave a Reply