<div class="relative">
  <div class="absolute">W3TR</div>
</div>
.relative {
  position: relative;
  border :1px solid red;
  width: 300px;
  height: 300px;
}
.absolute {
  position : absolute;
   width: 150px;
  height: 150px;
  border : 1px solid green;
  right: 40px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.