L
L
lue merg2018-03-28 20:50:38
css
lue merg, 2018-03-28 20:50:38

How to change the order of divs?

There is an n-th array of blocks
1
2
3
...
n
How to reverse their order, i.e. instead
of 1
2
3
...
n
Get
n
...
3
2
1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr Crabbz, 2018-03-28
@luemerg

for the parent of these three blocks:

.parent {
  display: flex;
  flex-direction: column-reverse;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question