how to make the width of an element equal to its height code example
Example: how to set height equal to dynamic width pure css
.some_element {
position: relative;
width: 20%;
height: 0;
padding-bottom: 20%;
}
.some_element {
position: relative;
width: 20%;
height: 0;
padding-bottom: 20%;
}