Good day. Can you please tell the beginner whether it is normal to use a block with a class .container inside a block .container-fluid? Or is it a scary crutch? What you need - for example, navbar needs a fixed width, then a couple of blocks full-width, then again a block of fixed width.

    2 answers 2

    You do not need to do all the blocks in one .container , make block by block and for each, use either .container or .container-fluid and then this question will disappear.

     <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> <div class="menu"> <div class="container"> <div class="row"> Секция 1 </div> </div> </div> <div class="header"> <div class="container-fluid"> <div class="row"> Секция 2 </div> </div> </div> <div class="about"> <div class="container"> <div class="row"> Секция 3 </div> </div> </div> <!-- И т. д. --> 

    • Thank. I wrapped the blocks in container / container-fluid ... In this and the joint. - OPEX_by

    Can you please tell the beginner whether it is normal to use a block with a class .container inside a block .container-fluid?

    This is not normal, there should be one container. Why do you need two containers? .container - has a fixed width (1170 pixels.) If you want the site content to be stretched to the width of your screen (for example, more than 1170 pixels), use already then: .container-fluid is 100% width