We have a two-column layout, with a blue and a green column. It should behave after the following conditions:
Both columns have equal width.
The blue column height shall be determined on its content height, without giving any regard to the green column.
The green column should always have the same height as the blue one. So the height of the green column should be entirely determined by the height of the blue column / the content of the blue column.
The gray image positioned within the green column should stretch to the height of the green column but preserving dimensions.
Is there a way of achieving this using flexbox or other CSS techniques?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…