Bootstrap minimum width grid

后端 未结 3 1029
别那么骄傲
别那么骄傲 2021-01-04 02:19

Using twitter bootstrap using a fluid row setup I have

...
3条回答
  •  一生所求
    2021-01-04 02:54

    Bootstrap columns are flex items. You have to decide on one column which should shrink when the others have reached their min-width. This prevents elements moving to the next line.

    here is a pretty codepen i made: https://codepen.io/timar/pen/VQWmQq/

    In this case, we take the other span, reduce it to span1. Give it flex-grow and we have to overwrite bootstraps max-width property.

    ...
    ...

    to be on the safe side you can reduce the second span only as much as necessary. i.e span6 . Adjust the max-width to the amount the normal span had, we had span8 100/12*8 = 66.66%

提交回复
热议问题