<div class="parent">
  <div class="child child-one">child</div>
  <div class="child child-two">Now this is a lot of content that goes here and to be honest we should be wary of changes.</div>
  <div class="child child-three">child</div>
* {
  box-sizing: border-box;

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

.parent {
  background-color: #001f3f;
  display: flex;
  padding: 20px;

.child {
  background-color: #0074d9;
  padding: 20px;
  flex-grow: 1;
  color: white;

.child-three {
  flex-grow: 3;
  background-color: #3d9970;
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.