I’m a bit stuck with layout in a div block
How can I automatically match the width parameter of children in my div block, to that of a specific child in the same div block?
IMPORTANTLY, the width of the child I want to match with is variable (I’m using different images of different sizes from a CMS, and I want to keep their original dimensions).
Below is a diagram which hopefully explains what I’m after (I’m at A but want to be at B, where child 2 is the image, and its width variable. Child 1 and 3 are text):
Note: The div block is a flexbox.
From googling it seems if the div block is turned into an in-line block it’s possible? I’ve tried this though, and it doesn’t work. Also, it seems webflow doesn’t let me set the div block as an inline block when it is itself a child of another flexbox…
Anyway, if it’s not possible to fix this problem, could it please be added as a new feature in Webflow…?
Many thanks in advance!!!