Hi guys,
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):
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…?
Hello.
Photos have a fixed ratio of width and length. If you change only one of the two, you get distortions. A solution is to omit the max.heigh, then all photos are the same width but different in height.
If you want all photos to be right, they must all have a fixed height and width ratio. Something like 4/3.
Oh yes that’s a solution, I hadn’t thought of that!
However the specific problem is to get the dimensions of the images to stay the same as they are in the example.
Basically, ‘Div Block 2’ would not be the same width - it would be variable - the header & the text would automatically be squeezed or stretched to the same width value as the width of the images.
Sorry guys, I feel I’ve failed to explain well what I was intending - I should’ve uploaded this picture first time around! (I’m pretty new to this web design game.)