Re: [csswg-drafts] [css- not sure] child-contain: border-box; to resolve child margins at parents edge

Would using `display: flow-root` on the parent solve most your cases? This inhibits margin collapsing between itself and it's children. Either that and/or using...

.parent > :first-child { margin-top: 0; }
.parent > :last-child { margin-bottom: 0; }
...usually covers all cases for me.

GitHub Notification of comment by jonjohnjohnson
Please view or discuss this issue at using your GitHub account

Received on Thursday, 26 July 2018 01:23:41 UTC