So we can set the height of an element based on the element's width, like:
.box {
width: 30vw;
height: auto;
}
And it will present us with good dimensions (assuming the box is 30vw wide initially).
Is there any way we can do a reverse way, say:
.box {
height: 30vh;
width: auto;
}
I suppose the box will just take the whole parent's width in this case, but can I change this behavior somehow so that it is relative to the element's height?