A
A
Aligatro2018-02-21 04:50:31
css
Aligatro, 2018-02-21 04:50:31

Flexbox, how to bind an element's position in a row?

In short, even I’m a bit of a dinosaur and I’m late with practice on flex, I read it, played around and scored, and now I’m suffering ...
In general, I’m interested in such a moment, is it possible to stake an element at a certain position in a line (without using absolute positioning), for example, by center / right /left, regardless of the number of neighboring elements. Here's a little visualization of what I mean .
All that came to my mind was to make the elements columns and set their position through align-self, but the catch is that these are still columns and I can’t put them in a line.
Ps I know about hacks with margin left / right, but I need a single style, because suppose I don’t have information about which of the elements will disappear (right or left) in order to add margin.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TheRevan, 2018-02-21
@TheRevan

You make all blocks order: 2, the first block that is needed on the left is order: 1 and the one at the end is order: 10

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question