<div class="container">
  <div class="parent">
    <div class="child"></div>
  </div> 
</div>
* {
  margin:0;
  padding:0px;
}
.container {
  width: 500px;
  background-color: #64b5f6;
}
.parent {
  width: 200px;
  height: 200px;
  background-color: #448aff;
  overflow: hidden;
}
.child {
  width: 100px;
  height: 100px;
  background-color: #e3f2fd;
  margin-top: 30px;
  margin-bottom: 10px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.