-
matt_hc
I’m using the GB Pro grid block, and I have a two column grid. I am trying to figure out what to enter in the GRID AUTO FLOW field within the GRID LAYOUT settings to reverse the order of the grid elements. I’ve tried typing row-reverse, but it doesn’t seem to be working. I would prefer not to have to manually enter an order number for the elements in the grid to change the order as that becomes a headache when there are more elements within the grid.
-
Hi there,
To reverse the order of the grid items, I don’t think
grid-auto-flow
is the one.Unfortunately, it needs to be set for each of the grid items; for example, set 1st grid item’s
grid-column
to2/3
, so it moves to the 2nd column; set the 2nd grid item’sgrid-column
to1/2
andgird-row
to1/2
.For more info about
grid-auto-flow
:https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flowFor more info about
grid-column
https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column -
matt_hc
Okay. I was just changing the ORDER value to -1 to get it to reverse before, and that also seemed to work. I was just thinking there might be a way to reverse the order in the same way that a flex container does.
-
Great! Yes,
order
works as well in this case.
- You must be logged in to reply to this topic.