How to style a div to be a responsive square? [duplicate]
This question already has answers here: Maintain the aspect ratio of a div with CSS (37 answers) Closed 7 years ago. I want my div to adapt its height to always equal its width. The width is percental. When the parent’s width decreases, the box should decrease by keeping its aspect ratio. How to do … Read more