Is it possible to either
make an item occupy all of a single column in grid layout, when not knowing how many rows there are (depending on the number of items) or
make all other items occupy only a selected range of columns, but still each single item occupying a single grid cell only, not items spanning multiple columns?
What I show below is the first case I described, but it works only when the number of rows is known beforehand. Replacing 1 / 6
with 1 / -1
doesn't work.
.grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 1rem;
}
.grid div {
background: red;
}
.left {
grid-row: 1 / 6;
}
<div class="grid">
<div class="left">Column</div>
<div>A</div>
<div>B</div>
<div>C</div>
<div>D</div>
<div>E</div>
<div>F</div>
<div>G</div>
<div>H</div>
<div>I</div>
<div>J</div>
</div>