Container box not shrinking if it contains an image?

Hi
I have used Wix’s helpful “show more” with static text code to show just a few characters of text and a show more button. The text box and button are within a container box and all works as expected with the button moving up and down below the text and the container box dynamically changing size.

However, if I add an image to the container box, the text and button move but the box does not.

I have tried the image in different places and sizes to make sure I am within the parameters (50px I believe).

Any thoughts?

Justin

hi Justin,

Are you collapsing the image?
$w(‘#image’).collapse();

Thanks Ido. No I am not.

I have now made it work with one image, so it must be something to do with the distance of the image from the bottom of the container and the text box - I will re-read the Wix help and count the pixels!

I’m having a similar problem. The container does not shrink even when the image is collapsed. I have tried it with multiple images and the container remains fixed at the maximum size even when the images are collapsed.

Collapsing, say, the first image results in the images shuffling up the page but the container stays the same size. I thought the container would adjust accordingly. but it doesn’t. Am I missing something?