How to keep wrapped flex-items the same width as the elements on the previous row?

前端 未结 13 1205
一整个雨季
一整个雨季 2020-11-29 01:24

I have a

    that is a flex-box and a bunch of
  • s in it which are the flex-items.

    I am trying to get the

13条回答
  •  伪装坚强ぢ
    2020-11-29 01:54

    Setting the min-width and max-width as percentages has allowed all images to stay the same width when they break onto the next line. It is not ideal, but closer to what you are after?

    li {
      min-width: 15%;
      max-width: 15%;  
    }

提交回复
热议问题