Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

I need to have a column with nested columns with its own sizes, not related to the parent's container.

Am I able to do so? Or am I limited to one container per page?

like image 572
FrozenHeart Avatar asked Dec 01 '16 07:12

FrozenHeart


People also ask

Can I use multiple containers in Bootstrap?

Docs: Bootstrap requires a containing element to wrap site contents and house our grid system. You may choose one of two containers to use in your projects. Note that, due to padding and more, neither container is nestable [neither means that .

Does a Bootstrap row need a container?

Rows must always be placed inside of a container. Rows span the width of the container. They have a negative 15 pixel margin at the end, essentially removing the 15 pixel margin set by its container. This is because the columns each have a 15 pixel margin of their own that replaces the container's margin.

What are the Bootstrap container classes how the container classes are different to each other?

Containers are used to pad the content inside of them, and there are two container classes available: The .container class provides a responsive fixed width container. The .container-fluid class provides a full width container, spanning the entire width of the viewport.


1 Answers

Bootstrap requires a containing element to wrap site contents and house our grid system. You may choose one of two containers to use in your projects. Note that, due to padding and more, neither container is nestable.

Read official doc here

like image 171
Jyoti Pathania Avatar answered Sep 20 '22 15:09

Jyoti Pathania