Set the height of the collection item div to auto, it will expand with the text height automatically, since texts do have intrinsic height, while the image must be with height: 100% and possibly with a object-fit cover
I don’t get to work.
I must add that this is a collection list with image and text changing side for every new post.
That gives me some restrictions on what to do, I think.
Hi, I think what @Jan_Fredrik_Bjorntve is trying to do is to use an image block and not as a background image of a div. In this case the image you add has a set height which makes the parent element grow to the image height.
I have the same problem and for me I dont want the image to get cropped in any way as it is a logo.
So I want to use the image element, but I want that image element to only fill the remaining height which should be determined by the text!