Hello, I am trying to convert rows into columns using CSS. Currently, my code looks like this:
<style>
.flex-container {
max-width: 500px;
width: 100%;
display: flex;
flex-wrap: wrap;
}
.flex-item {
width: 25%;
}
</style>
<div class="flex-container">
<div class="flex-item">1</div>
<div class="flex-item">2</div>
<div class="flex-item">3</div>
<div class="flex-item">4</div>
...
<div class="flex-item">19</div>
</div>
Currently seeing in the browser as first step
https://i.sstatic.net/bFCZV.png
I would like it to look like final step as shown below