<h1>CSS Position: Relative</h1>
<div class="container">
  <div class="box">static</div>
  <div class="box relative">relative</div>
  <div class="box">static</div>
</div>
div.container {
  display: flex;
}
div.box {
    height: 100px;
    width: 100px;
    border: 2px solid lightskyblue;
    text-align: center;
    background-color: lightgoldenrodyellow;
    border-radius: 10px;
    margin: 5px;
}

div.relative {
    position: relative;
    top: 40px;
    left: 65px;
    background-color: lightblue;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.