blob: af25ab25c47feaecbb436b4dbd50bea161832a89 [file] [log] [blame]
<style>
.container {
border: 5px solid green;
height: 100px;
width: 100px;
position: relative;
}
div div {
background: blue;
position: absolute;
height: 50px;
width: 50px;
top: 10px;
bottom: 10px;
}
</style>
<div class=container><div style="margin-top: 10px;"></div></div>
<div class=container><div style="margin-bottom: 10px;"></div></div>
<div class=container><div style="margin-top: 10px; margin-bottom: 10px;"></div></div>