Answer the question
In order to leave comments, you need to log in
How to change block height dynamically?
How to specify the dimensions of the block when laying out with flexbox, so that, regardless of its content, the height dynamically changes along with the width, while maintaining proportions? Is there a "correct" way? I do this (sass):
div
overflow: hidden
&:before
content: ''
padding-top: 100%
float: left
Answer the question
In order to leave comments, you need to log in
You here: https://benmarshall.me/responsive-iframes/
Do not look at the name, it is suitable for all blocks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question