Nesting container within a container bootstrap

后端 未结 3 1701
北恋
北恋 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条回答
  •  难免孤独
    2021-01-02 12:29

    For Bootstrap 4, containers can be nested.

    Containers Containers are the most basic layout element in Bootstrap and are required when using our default grid system. Choose from a responsive, fixed-width container (meaning its max-width changes at each breakpoint) or fluid-width (meaning it’s 100% wide all the time).

    While containers can be nested, most layouts do not require a nested container.

    Reference:https://getbootstrap.com/docs/4.0/layout/overview/

提交回复
热议问题