I have a list of blocks, that I want to place in two rows, now I use grid:
li:nth-of-type(2n) {
grid-row-start: 2;
}
li:nth-of-type(2n + 1) {
grid-row-start: 1;
}
<ul>
<li>Item</li>
<li>Item</li>
<li>Item1111</li>
<li>content content</li>
</ul>
You can see, what I get:
I want to set width of every grid cell to width of its content, like on the pic
Is it even possible?