gecko-dev/layout/reftests/margin-collapsing/inline-block-sibling-1b.html

30 строки
371 B
HTML

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#a {
width: 200px;
background-color: green;
}
#b, #c {
display: inline-block;
height: 2em; width: 200px;
background-color: blue;
vertical-align: bottom;
}
#b {
margin-bottom: 1.5em;
}
#c {
margin-top: .5em;
}
</style>
</head>
<body>
<div id="a">
<div id="b"></div>
<div id="c"></div>
</div>
</body>
</html>