How can I set the height of an element based on the width of it's parent div ?
if I do
height: <some_ratio>vw
I'm getting a height that equals some_ratio
of the viewport's width.
I want some_ratio
of parent div's width.
Is that possible ?
(I need this to generate square elements in bootstrap cols. Thus the height of those elements must equal the width of the col)