CSS3 flexbox layout max 3 child items on one line

后端 未结 6 1098
余生分开走
余生分开走 2021-02-07 03:05

Is their an simple way in CSS to have a fixed maximum of child items on the same line, before you push the next child elements to a new line?

6条回答
  •  自闭症患者
    2021-02-07 04:02

    If you are using it with bootstrap you shoul add this css for pseudo row class

    .row:before,
    .row:after{
        width:0 !important;
     }
    

提交回复
热议问题