How to create a layout where parent height = height of smallest child?

I have a div with display flex which contains 2 children side by side, I want the children to be of same height but the one which is larger should be scrollable. In this sandbox example I want the blue to be the same height as red but should be scrollable. This is just a basic example the real case why I need is because on the left I have a form and on the right I have a list of products and then the list is much larger to avoid scrolling the whole page I want to scroll just the element https://codesandbox.io/s/immutable-pine-bzio8k?file=/index.html
endrits079
CodeSandbox
immutable-pine-bzio8k - CodeSandbox
immutable-pine-bzio8k by endrits079
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server