Having a list of items, the element should show 2 elements per column. If there are more elements, it should create a new column.
Example:
test0  test2
test1  test3
If there are 3 elements:
test0  test2
test1  
If there are 2 elements:
test0
test1
This is the code I have tried:
<div class="container">
  <div>test0</div>
  <div>test1</div>
  <div>test2</div>
  <div>test3</div>
</div>
.container {
  display: flex;
  max-lines: 2;
}
 
    