In this scenario, the goal is to display a list of items with two elements per column. If there are additional elements, a new column should be created.
For example:
test0 test2
test1 test3
If there are three elements:
test0 test2
test1
If there are only two elements:
test0
test1
Below is the code snippet that was attempted:
<div class="container">
<div>test0</div>
<div>test1</div>
<div>test2</div>
<div>test3</div>
</div>
.container {
display: flex;
max-lines: 2;
}