On the page I have a container block with a width of 1200px .

It is necessary inside this block, another div stretch the entire width of the monitor. If you set the width: 100% , respectively, will be the width of the container . How can I do that? without position: absolute ?

    2 answers 2

    If it is not absolute, then it is the only way (to move it to another container):

     <div class="container"> ... </div> <div class="container-fluid"> <div > тут Ваш блок </div> </div> 

      here, in principle, no container-fluid is needed.

       <div class="container"> ... </div> <div class="full-width-block" style="width: 100%;"> Тут блок на всю ширину экрана <div class="container"> Тут обычный контейнер </div> </div> 
      • the question indicates that there is already the container you need - michael_best
      • so I wrote that I had to take it out of the container -> stretch to the full width -> insert my container inside (if required) - newMan
      • and he wrote what was needed inside the container. - michael_best