I am working on a html code as shown below in which I want to align multi-column elements from left-right before top-down.
<ul class="list-tomorrow-page">
   <li class="article-tomorrow-page"></li>
   <li class="article-tomorrow-page"></li>
   <li class="article-tomorrow-page"></li>
   <li class="article-tomorrow-page"></li>
   <li class="article-tomorrow-page"></li>
   <li class="article-tomorrow-page"></li>
   <li class="article-tomorrow-page"></li>
</ul>
@media (min-width: 767px) {
.list-tomorrow-page {
    column-count: 2;
    column-gap: 6rem;
}
}
@media (min-width: 767px)
.article-tomorrow-page {
    height: 475px;
    list-style: none;
    display: inline-block;
}
The above html code display the o/p in the following fashion:
item1  item5
item2  item6
item3  item7
item4
Problem Statement:
I am wondering what I should make in the css code above so that it displays the list of items in the following fashion:
item1    item2
item3    item4
item5    item6
item7
I copied the answer from here but it didn't work.
<style>
  ul {list-style: none;}
  li {float: left;}
  li:nth-child(2n+1) {clear: left;} /* 1st of every twos */
</style>
 
    