blob: 9602fdb962a1d3313ddb860067492e6e0266b0e7 [file] [log] [blame]
<!DOCTYPE html>
<!--
| Adjoining vertical margins collapse if both belong to vertically-adjacent box
| edges, i.e. top margin of a box and top margin of its first in-flow child.
| https://www.w3.org/TR/CSS21/box.html#collapsing-margins
-->
<html>
<head>
<style>
.outer-blue {
background-color: #03a9f4;
height: 100px;
width: 100px;
}
.outer-green {
background-color: #00e676;
margin-top: 10px;
}
.inner-green {
background-color: #00c853;
height: 100px;
margin-top: 100px;
width: 100px;
}
</style>
</head>
<body>
<div class="outer-blue"></div>
<div class="outer-green">
<div class="inner-green"></div>
</div>
</body>
</html>