1/* Prevent Child Margin from Moving Parent */
2.parent {
3 margin: -1px;
4 padding: 1px;
5}
6/* Alternatively */
7.parent {
8 display: flow-root; /* no supported by IE 11 */
9}
10/*
11Learn more: https://www.w3.org/TR/CSS2/box.html#collapsing-margins
12*/