Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
html, body {
font: 16px/1 monospace;
background: white;
}
.container {
display: flex;
flex-direction: row-reverse;
align-items: flex-start;
gap: 10px;
height: 200px;
outline: 1px solid black;
position: relative;
}
.item {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 80px;
background: lightblue;
flex-shrink: 0;
}
.oof {
position: absolute;
width: 20px;
height: 20px;
background: red;
}
</style>
</head>
<body>
<!-- row fill-reverse, width auto -->
<div class="container">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="oof" style="top: 0px; right: 0px;"></div>
<div class="oof" style="top: 90px; right: 0px;"></div>
<div class="oof" style="bottom: 0px; right: 0px;"></div>
</div>
</body>
</html>