<article>
  <div>1</div>
  <div>2</div>
  <div>3</div>
  <div>4</div>
</article>
article {
  width: 400px;
  height: 400px;
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(2, 1fr);
  border: solid 5px silver;
  grid-auto-flow: column;
}

div {
  background: blueviolet;
  background-clip: content-box;
  padding: 10px;
  font-size: 35px;
  color: white;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js
  2. https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js