There is a block of headings that I want to place on the vertical center of the screen, regardless of screen size and cross-browser compatibility of ie8 + (flexbox will not work), and with the header and footer nailed to the top and bottom, respectively. It is now displayed normally for medium-sized screens, but on large ones the block is thrown up. How can this be done? fiddle
header { height: 60px; text-align: center; } .headings { padding: 5% 0 15% 0; color: #fff; } .headings h1 { font-size: 40px; font-weight: 700; line-height: 1.2; text-align: center; color: rgb(102, 102, 102); text-shadow: 0px 6px 4px rgba(0, 0, 0, 0.2); margin: 0; } .headings h2 { font-size: 30px; font-weight: 700; line-height: 1.2; text-align: center; color: rgb(181, 181, 181); margin: 0 0 10px 0; } p { text-align: center; } <header class="sticky" id="header"> <nav>Menu</nav> </header> <div class="headings"> <h1>Заголовок</h1> <h2>Описание</h2> <p><a href="#">телефон</a> </p> </div> <footer> <p>© copyright</p> </footer>