Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

How do I reverse rows with “grid auto flow”

  • 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’sgrid-column to 2/3, so it moves to the 2nd column; set the 2nd grid item’s grid-column to 1/2 and gird-row to 1/2.

    For more info about grid-auto-flow:https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow

    For more info about grid-columnhttps://developer.mozilla.org/en-US/docs/Web/CSS/grid-column

  • 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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.