Modal toggle background image responsive

Hello,
i have a image (350 x 197 px) on a modal toggle and i would like to know how to make it responsive.

Here is the toggle image on SM width : 01

when i go XS width, the image stay the same width instead shrinking with the side borders :
02

What i would like is this :
02b

How to do that ?

Hello @Lyser,

Thanks for writing to us.

To make it responsive you need to set the background size as a “cover”. You can set it from the Modal element. Please have a look at the given screenshot below.

In case if it doesn’t work for you, please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin level username and password
  • Exact Page URL

You can find the Secure Note button at the bottom of your posts

Thanks

Thx @prakash_s but the image options for toggle seems to be different from your screenshot :
03

Hello @Lyser,

In your Grid layout, you were using pixels. Be advised that when using pixels, it will always be the same exact pixel size in whatever screen size. It is best that you use em or fr for the Grid Layout.

The toggle image will follow the width of the cells thus will have to adjust responsively. To be more familiar with the grid, please check this out:

Or check out this video tutorial:

Hope this helps.

Thx ruenel, i tried doing same thing with a image element, the shrink works fine, but it’s not working with the modal toggle, can a modal toggle image shrink ?

04

Hello @Lyser,

In your modal element settings, Modal > Toggle, set the child placement to column.
Screen Shot 2021-07-02 at 9.18.12 AM

And then in the Graphic Image settings, set the maximum width to 100%.

Hope this helps. Kindly let us know how it goes.

Aaah yes it works, thx you very much @ruenel ! =)

Hi @Lyser,

Glad that we are able to help you.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.