Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.container {
position: relative;
width: 50px;
height: 230px;
margin-bottom: 10px;
background: lightgray;
}
.item {
position: absolute;
left: 0;
width: 50px;
background: green;
}
</style>
<div class="container">
<div class="item" style="top: 0px; height: 40px"></div>
<div class="item" style="top: 50px; height: 40px"></div>
</div>
<div class="container">
<div class="item" style="top: 0px; height: 110px"></div>
<div class="item" style="top: 120px; height: 110px"></div>
</div>