Is it legal to use multiple containers on the same page in Bootstrap

Can I use multiple containeron the same page in Bootstrap?

I need a column with nested columns with its own dimensions, not related to the parent container.

Can I do it? Or am I limited to one containerper page?

+4
source share
3 answers

Bootstrap requires a containing element to wrap the contents of the site and build our mesh system. You can choose one of two containers for use in your projects. Please note that due to filling and more, no container is nested.

+6

Bootstrap: http://getbootstrap.com/css/#overview-container

Bootstrap . . , - , .

, - .

+3

. , . , , .

<section class="bg-1"><div class="container"></div></section>
<section class="bg-2"><div class="container"></div></section>
<section class="bg-3"><div class="container"></div></section>

In your case, you can use a fluid container and define your own columns. This way you will have a container and your own layouts.

Hope this helps.

+1
source

Source: https://habr.com/ru/post/1662499/


All Articles