I am trying to format the column/image so that the image always fills 100% height and any overflow is hidden.
I have tried adding the image as a background image to the column but cannot make it fill the column, also tried a div with a background image in the column.
When I set the image to 100% height it distorts horizontally as the column gets smaller.
Try to put a div in the column, then use your image as a background of this div. Set the background to poster, center, and set the div 100% geight and width… does this work for you?
Hi Vincent, when I set the div to 100% height and width it does no register any scale from the background image so the div disappears with a height of 0.
“Hi Vincent, when I set the div to 100% height and width it does no register any scale from the background image so the div disappears with a height of 0.”
Ah! I’m stuck like you. Can’t get a column to expand to the row size vertically.
I tried with divs without row without luck.
There must be a way to achieve what you want though… hmm…
Div will not expand to 100% of row size, the size of div is determined by its contents (absolute position of 100% does not seem to work in a column block - when you choose this option the div jumps above the column.)
Div does not use background image as a % measure
Setting image div to 100% height means that the image scales horizontally as the columns get narrower.
Oh yes, JS. Here we have a typical CSS issue: elements can’t expand 100% height when they don’t know any height of any parent. JS comes to the rescue, calculating height.
That would be great if in the future, Webflow knows to identify such a case and work a JS magic in the background so it’s transparent for us.
I’m not too skilled into flexboxes but I think this is a case were this layout is a no-brainer with flexboxes. (<- this has a good 10% possibility of being total made up BS)
I set the column row to 35% VH, this presented a reasonable vertical height across responsive.
Then I set each column to an absolute position based on this parent (the left hand col positioned to the left, right hand column positioned to the right).
Then set background image on left hand col
Set text container div in right hand column to 100%