<div class="parent">
  <div class="inb"></div>
  <div class="inb"></div>
</div>
*{padding:0px; margin:0px;}
.parent{
  border: 2px solid red;
  font-size: 100px;
}
.inb{
  display: inline-block;
  width: 40px;height: 40px;background: #3498bd;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.