display grid css example
Example 1: display grid
display: grid;
grid-template-columns: repeat(3, 30%);
grid-column-gap: 3.33%;
grid-row-gap: 60px;
Example 2: css grid example
<div class="wrapper">
<div class="box">A</div><div class="box">B</div><div class="box">C</div>
<div class="box">D</div><div class="box">E</div><div class="box">F</div>
</div>
<style>
.wrapper {
display: grid;
grid-template-columns: 100px 100px 100px;
grid-gap: 10px;
background-color: #fff;
color: #444;
}
.box {
background-color: #444;
color: #fff;
border-radius: 5px;
padding: 20px;
font-size: 150%;
}
</style>
Example 3: display grid
.container {
display: grid | inline-grid;
}