A
A
Alexey Korolev2021-11-02 22:05:36
css
Alexey Korolev, 2021-11-02 22:05:36

How to correctly arrange blocks with the sticky and fixed properties in a row?

Tell me what I'm doing wrong. Maybe I didn't build the structure correctly. Position-sticky doesn't work. The idea is that the navigation block is fixed on the left, the content is in the center, and the sticky block is on the right. At the same time, the header is also fixed, which causes the content to crawl under the header and header-fix indents so that the content is after the header.

<div class="container-fluid header-fix">
         <div class="row">
            <div class="col-lg-1 position-fixed">фиксированная колонка</div>
            <div class="col-lg-8 ">
               <div class="col-lg-8 mx-auto">{content}</div>
            </div>
            <div class="d-none d-lg-block col-lg-3 position-sticky">левая липкая колонка</div>
         </div>
      </div>


Visually it looks like this.
61818afb9811d213459634.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question