I've the following configuration:
<div id="grid">
<div id="unlimited">/* Some data */</div>
<div id="limited">/* Some other data */</div>
</div>
With the following css:
#grid {
display: grid;
grid-template-columns: 2fr 1fr;
}
#limited {
overflow-y: scroll;
}
The #unlimited should have unlimited height (adjusted to it's content). But #limited should have a max-height: heightOf(#unlimited)
. Is this possible without using any javascript?
If it's not possible using a grid, can this be done using a flex layout?
The height of the parent container of #grid is not determinated (the height of the parent should be adjusted to match the #unlimited height).