CSS Grid Layout
CSS Grid Layout is a 2-dimensional system (cols and rows) which is the main difference to CSS Flexbox which is 1-dimensional system.
It makes easier to design web pages without having to use floats and positioning.
Define a grid:
<div class="wrapper">
<div class="box a">A</div>
<div class="box b">B</div>
<div class="box c">C</div>
<div class="box d">D</div>
<div class="box e">E</div>
<div class="box f">F</div>
</div>
Now the stylesheet:
.wrapper {
display: grid;
grid-template-columns: 33% 33% 33%;
grid-gap: 9px;
background-color: pink;
color: #444;
}
.box {
background-color: #444;
color: #fff;
border-radius: 5px;
padding: 20px;
font-size: 150%;
}
See and edit it on my codepen: Codepen
It can be seen I quickly designed my own grid based on percentages. My plan was to fill in all the available space between the 40px frame I designed within the body.
References CSS Grid Layout