Hello, I want to create such a design 
Set a fixed height of the container, horizontal scroll and image insertion function, but because of horizontal scrolling, all the pictures go in one line, not each other, but I want the column to go in three pictures (from top to bottom), and then a new column with three pictures from top to bottom (let all the pictures be the same width and height).
.container { width: 80%; margin: 20px auto; background-color: #edf0f4; height: 760px } .gallery { width: 100%; padding: 10px; height: 100%; margin: 0 auto; overflow-x: scroll; overflow-y: hidden; white-space: nowrap; display: inline-block; } .test { display: inline-block; width: 30%; height: 30%; background-color: red; } .gallery::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); border-radius: 10px; background-color: #d1dae3; } .gallery::-webkit-scrollbar { width: 12px; background-color: #F5F5F5; } .gallery::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3); background-color: #21b8c6; } <body> <div class="container"> <div class="gallery"> <div class="test"></div> <div class="test"></div> <div class="test"></div> <div class="test"></div> <div class="test"></div> <div class="test"></div> <div class="test"></div> <div class="test"></div> <div class="test"></div> <div class="test"></div> <div class="test"></div> </div> </div> </body> How to place elements in several lines with a horizontal scroll? Can I use only HTML and CSS or will I have to add javascript? Maybe there is some kind of plugin for this purpose?

display:flex,flex-direction:column- as an option - Grundyflex-wrap:wrap- Grundy