How to change navbar/container width? Bootstrap 3

前端 未结 7 1252
天涯浪人
天涯浪人 2020-12-13 03:42

The default width for my navbar is too wide 1170px. I would like to reduce it down to 940px - but I want to keep the responsiveness.

I trie

7条回答
  •  余生分开走
    2020-12-13 04:24

    Container widths will drop down to 940 pixels for viewports less than 992 pixels. If you really don’t want containers larger than 940 pixels wide, then go to the Bootstrap customize page, and set @container-lg-desktop to either @container-desktop or hard-coded 940px.

提交回复
热议问题