<div class="outline">
<div class="box box--positive">
<pre>positive</pre>
</div>
</div>
<div class="outline">
<div class="box box--negative">
<pre>negative</pre>
</div>
</div>
body {
padding: 40px 0;
}
.box {
width: 10rem;
height: 10rem;
display: flex;
justify-content: center;
align-items: center;
background-color: Silver;
position: relative;
}
.box--positive {
top: 50px;
}
.box--negative {
top: -50px;
}
.outline {
display: inline-block;
border: 2px dashed black;
margin: 40px 0 0 40px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.