The upper and lower parts of the layout, the height of the head is not fixed, the bottom is filled with the rest of the layout, can such a layout be implemented with css (any css attribute is fine)

when there is too much content at the bottom, you need to be able to scroll

Css
Mar.29,2021

add the answer upstairs. The container needs height: . If it is body , it needs html,body {height: 100%;}


you can use flex to set the upper flex-shrink to 0 and the lower flex-grow to column;

.
Menu