There are two sections that need to be fixed at the top of the page, and when scrolling so that they remain at the top.
<section class ="grey"> Тут какой то код </section> <section class="mnu_color"> тут какой то код </section> Fix like this
.grey { position: fixed !important; width: 100%; z-index: 99999; margin-top: 142px; } .mnu_color { position: fixed !important; width: 100%; z-index: 99999; margin-top: 241px; } But on indenting screens I work crookedly, if you do without a margin it does not work. If you make only one block, for example, grey without a margin , does it work? How to fix the two sections? A working example is here .