My page includes a fixed Search box at the top and a div under it containing text. I want the div's height to be the remainder of the window (minus the Search box). The div has a vertical scrollbar because there is more text than will fit in it. https://codesandbox.io/s/pjok544nrx
I'm trying to achieve this by setting the div's height to -web-fill-available, but the div's height is too big and it extends below the bottom of the window. So you can't scroll to the bottom of the text using the scrollbar. It seems to be using the height of the whole window, not subtracting the height of the Search box.
I tried using flex too, but couldn't figure out that approach either.
How can I get this to work?