<div class="container">
  <div class="left-col">
    <h2>Left Container</h2>
    <p>This container is positioned on the left side of the screen thanks to layout CSS properties.  The <span class="green">green</span> border is made possible by CSS style properties.</p>
  </div>
  <div class="right-col">
        <h2>Right Container</h2>
    <p>This container is positioned on the right side of the screen thanks to layout CSS properties.  The <span class="blue">blue</span> border is made possible by CSS style properties.</p>
  </div>
</div>
.container {
  display: flex;
  flex-direction: row;
}

.left-col, .right-col {
  margin: 20px;
  padding: 20px;
  flex: 50%;
  text-align: center;
}

.left-col {
  border: 1px solid green;
}

.right-col {
  border: 1px solid blue;
}

.blue {
  color: blue;
}

.green {
  color: green;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.