I want to make my height depending on the width, The smaller the width, the higher the height as in keeping a constant surface area of the element. How can I achieve that using only CSS?
height: calc(???)
None of the answer of Maintain the aspect ratio of a div with CSS is answering my question. I don't need it to have a constant aspect ratio but a constant surface area.