<div class="relative-box">這個元素相對於它的原始位置進行了偏移</div>
.relative-box {
  position: relative;
  top: 20px;
  left: 30px;
  background-color: #4CAF50;
  padding: 20px;
  color: white;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.