W
W
webe2018-06-22 03:12:35
css
webe, 2018-06-22 03:12:35

How to move a block?

There are blocks that are flattened to the right edge. (flex-end)
We need to make sure that the red and green blocks are flattened to the left edge.
Is it possible to do it without additional wrappers and float?
Maybe there is some magical thing about flexbox..
https://jsfiddle.net/umc2ns3o/2/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Camaro67, 2018-06-22
@webe

Alternatively https://jsfiddle.net/umc2ns3o/7/
UPD: Variant with pseudo-element and order https://jsfiddle.net/umc2ns3o/25/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question