<div class="container"><div class="component"></div><div class="component"></div><div class="component"></div><div class="component"></div></div>
* {
  box-sizing: border-box;
}

.container {
  width: 50vw;
  margin: 15vh auto;
  padding: 5vw 3vw 3vw 5vw;
  background-color: coral;
  border-radius: 2vw;
}

.component {
  display: inline-block;
  width: 19vw;
  height: 25vh;
  background-color: pink;
  margin-right: 2vw;
  margin-bottom: 2vw;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.