Nesting container within a container bootstrap

后端 未结 3 1702
北恋
北恋 2021-01-02 11:59

I\'m have a little bit of trouble getting a definitive answer on containers in bootstrap. It\'s clear that you should not nest a .container within a .con

3条回答
  •  萌比男神i
    2021-01-02 12:23

    According to Bootstrap 3 documentation

    Note that, due to padding and more, neither container is nestable.

    However, in Bootstrap 3 a navbar has a .container inside it and at the same time it can all be enveloped by a bigger .container. So there is a .container within a .container and it is not a mistake. To verify that one may look at the page source here, in Bootstrap documentation: https://getbootstrap.com/docs/3.3/examples/navbar/

提交回复
热议问题