Why inline-flex element with clearfix has a weird white space?

前端 未结 3 1537
花落未央
花落未央 2020-12-31 20:12

I have a weird behaviour of an inline-flex element when applying a clearfix to it. When I set a clearfix to an element which has an inline-flex dis

3条回答
  •  不思量自难忘°
    2020-12-31 20:31

    Try set a verical-align: top; to your inline-flex | inline-block element to fix this offset.

    https://jsfiddle.net/jeca65my/2/

    Thank's to @NenadVracar on this solution

提交回复
热议问题