there is a hat:
.header{ height: 45px; } and there is a footer pressed to the bottom of the page:
.footer { position: absolute; left: 0; bottom: 0; height: 45px; } and there is a central block with a fixed height:
.center{ height: 350px; } it is necessary to make it so that .center is always vertically centered between .header and .footer. Those. if I reduce the height of the browser window in height, the .center should still be automatically aligned vertically in the center. Naturally, if I strongly compress the browser window, the footer will climb on the .center - and so it was conceived.