blob: 39673a1be067c3f7dd43925e540ca75090f2744e [file] [log] [blame]
<!DOCTYPE html>
| Adjoining vertical margins collapse if both belong to vertically-adjacent box
| edges, i.e. bottom margin of a last in-flow child and bottom margin of its
| parent if the parent has "auto" computed height.
.outer-green {
background-color: #00e676;
margin-bottom: 10px;
.inner-green {
background-color: #00c853;
height: 100px;
margin-bottom: 100px;
width: 100px;
.outer-blue {
background-color: #03a9f4;
height: 100px;
width: 100px;
<div class="outer-green">
<div class="inner-green"></div>
<div class="outer-blue"></div>