Bootstrap align Columns of different height

前端 未结 4 1477
悲&欢浪女
悲&欢浪女 2021-01-27 20:17

I would like to be able to align an unknown number of columns with an unknown height. Since I do not know how many columns there will be it is not ideal for me to use multiple

4条回答
  •  梦毁少年i
    2021-01-27 20:46

    You really don't need bootstrap to handle this. Here's one potential solution using inline-block. I imagine it's compatible with bootstrap.

    .box {
      margin: 15px;
      width: 80px;
      background-color: grey;
      display: inline-block;
      vertical-align: top;
    }
      

提交回复
热议问题