<div class="wrapper">
  <div class="example">
    <div>Item One</div>
    <div>Item Two</div>
    <div>Item Three Item Three Item Three Item Three Item Three</div>
  </div>
</div>
* {box-sizing: border-box;}

body {
  background-color: grey;
  font: 1.5em/1.3 Helvetica, Arial, sans-serif;
}

.wrapper {
  background-color: white;
  width: 800px;
  margin: 40px auto;
  padding: 20px;
}


.example {
  display: flex;
  background-color: rgb(255,157,10);
  padding: 10px;
}


.example > * {
  border-radius: 10px;
  background-color: rgb(43,91,128);
  color: white;
  padding: 20px;
  flex: auto;
  
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.