I managed to get the grid for my simple layout. Now I would like to center it vertically. How can I get it done? Important: I mean the whole wrapper (wrapping container/ whole grid), not the items within the container...
And a second question concerning this issue: is this effecting "grid-auto-flow: row dense;"?
html {box-sizing: border-box;}
body {}
.wrapper {
display: grid;
width: 100%;
grid-column-gap: 5px;
grid-row-gap: 5px;
grid-template-columns: 20% 20% 20%;
grid-template-rows: 25% 25% 25%;
justify-content: center;
align-content: center;
grid-auto-flow: row dense;
}
.box
{padding: 15px;
border: 1px solid red;
background: grey;}
.a {grid-column: 1 / span 2;
grid-row: 1 / span 2;}
.b {grid-column: 3; grid-row: 1}
.c {grid-column: 3; grid-row: 2;}
.d {grid-column: 1; grid-row: 3}
.e {grid-column: 2; grid-row: 3}
.f {grid-column: 3; grid-row: 3}
<div class="wrapper">
<div class="box a">
<img src="" style="">
</div>
<div class="box b">
<img src="" style="">
</div>
<div class="box c">
<img src="" style="">
</div>
<div class="box d">
<img src="" style="">
</div>
<div class="box e">
<img src="" style="">
</div>
<div class="box f">
<img src="" style="">
</div>