You can change your css code and make it:
.container { height: 100vh; display: grid; grid-template-rows: 100px 1fr auto; }
What do you want is the 1fr. In this way the middle div will fill all the available empty space. See here for details about the fr unit: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Basic_Concepts_of_Grid_Layout#the_fr_unit
2.1m questions
2.1m answers
60 comments
57.0k users