<div class="container">
  <div class="orange-square">
    
  </div>
</div>
.container {
  position: relative;
  width: 100%;
  height: 200px;
  background: #2d2d2d;
}

.orange-square {
  position: absolute;
  width: 50px;
  height: 50px;
  background: orange;
  
  top: 10%;
  left: 50%;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.