Is it possible to dynamically set the position of a div based on its own height, which can vary depending on the content inside?
Here is an example structure:
HTML
<div class="container">
Content
</div>
CSS:
:root {
--height: x;
}
.container {
height: auto;
top: calc(100vh - var(--height));
}