I want my grid to fill in vertically like this:
1 4 7
2 5 8
3 6 9
... arbitrary number of additional rows.
Instead, it fills in horizontally like this:
1 2 3
4 5 6
7 8 9
I want to specify the number of columns in my grid, not the number of rows.
This is what my div looks like with inline CSS styling:
<div style="display:grid; grid-template-columns:1fr 1fr 1fr;">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
</div>
It's important that my grid be 3 columns wide, but I want the items to be populated by column, not by row. Is this possible in CSS Grid? I've read through this https://css-tricks.com/snippets/css/complete-guide-grid/ but didn't see anything about order.
CSS Flexbox has flex-direction, isn't there an attribute like that for CSS Grid?