I'm trying to make each column of my css grid facing each other : making it look like that:
+---+---+
| A | D |
+---+---+
| B | E |
+---+---+
| C | F |
+---+---+
Instead of :
+---+---+
| A | |
+---+---+
| B | |
+---+---+
| C | D |
+---+---+
| | E |
+---+---+
| | F |
+---+---+
I've tried to play with the grid-row and I'd like to avoid placing them with an id
.container{
display: grid;
grid-template-columns: auto auto;
background: yellow
}
.left {
grid-column: 1;
background:green;
}
.right{
grid-column : 2;
background: olive
}
<div class="container">
<div class="left">A</div>
<div class="left">B</div>
<div class="left">C</div>
<div class="right">D</div>
<div class="right">E</div>
<div class="right">F</div>
</div>