Page 1 of 1

How to map images and show them inline?

Posted: Sat Apr 18, 2020 2:27 pm
by Makoto

Hi Appery team,

I'd like to map multiple images to an image component in a grid and show them inline.
I could successfully map them, but couldn't show them inline.
I've already specified 'display: inline-block;' to the image in CSS.
But it doesn't work.
I need your help.
Thank you!

【Current】

Image

【Goal】

Image


How to map images and show them inline?

Posted: Mon Apr 20, 2020 11:09 am
by Galyna Abramovych

Hello,

It looks like your styles need more weight.
Please try adding this css:
codeimg.my_img {
display: inline-block;
width: 20%;
}/code

Don't forget to add the "my_img" class to every image to make it work.


How to map images and show them inline?

Posted: Mon Apr 20, 2020 2:31 pm
by Makoto

Hello Galyna,

thank you for your reply.
I followed your advice, but it still doesn't work.


How to map images and show them inline?

Posted: Mon Apr 20, 2020 2:57 pm
by Makoto

My mapping in service response is like this.

Image


How to map images and show them inline?

Posted: Tue Apr 21, 2020 11:32 am
by Serhii Kulibaba

Hello,

Have you added a class "my_img" to each image? Could you show a screenshot of how you did it?


How to map images and show them inline?

Posted: Tue Apr 21, 2020 2:30 pm
by Makoto

Hello,

Thank you for your reply.
As I said in the first post, I'd like to map multiple images to an image component in a grid. So, I add the class "my_img" to the only one image like this.

Image


How to map images and show them inline?

Posted: Wed Apr 22, 2020 12:38 pm
by Serhii Kulibaba

You use a mapping to images, located in the grid. The provided CSS is used for images without that grid.

Please use the following CSS for your case:
pre[data-wrapper-for="mobilegrid_208"]{
display: inline-block;
width: 20%;
}/pre


How to map images and show them inline?

Posted: Wed Apr 22, 2020 3:48 pm
by Makoto

Hello,

it worked perfectly!
Thank you very much