<div class="container cf">
  <div class="child">
    <p>Child 1</p>
  </div>
  <div class="child last">
    <p>Child 2</p>
  </div>
</div>
/* reset body padding and margins */
body {
  padding: 0;
  margin: 0;
}

/* box sizing */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* clearfix */
.cf:before,
.cf:after {
  content: " ";
  display: table;
}
.cf:after {
  clear: both;
}
.cf {
  *zoom: 1;
}

/* container and child styles */
.container {
  padding: 20px;
  background: #f567a8;
}

.child {
  float: left;
  width: 45%;
  margin: 0 10% 0 0;
  border: 5px solid #fff;
  background: #a91C96;
  
  /* just for text styling */
  font-size: 2em;
  color: #fff;
  text-align: center;
}

.last {
  margin: 0;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.