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
inline-flex
Try set a verical-align: top; to your inline-flex | inline-block element to fix this offset.
verical-align: top;
inline-flex | inline-block
https://jsfiddle.net/jeca65my/2/
Thank's to @NenadVracar on this solution