<div class="container">
  <div class="item">
  </div>
</div>
.container {
  width: 300px;
  height: 300px;
  background-color: blue;
  position: relative;
}

.item {
  width: 100px;
  height: 100px;
  background-color: aqua;
  position: absolute;
  top: 40px;
  left: 80px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.