N
N
nismachny2021-06-25 18:10:43
css
nismachny, 2021-06-25 18:10:43

How to align only the first flex item and stretch it to two lines?

Good day to all! Please help me understand the problem.

I have a flex parent that has 5 elements.
We need the first one to span 2 lines, and the rest to align with flex-wrap. The order in the picture.
60d5f1adb0939606563944.jpeg

I know, it smells like grids, but I really want to implement it on flex))

Thank you in advance!

The structure is as follows:
60d5f6b9218d4876185050.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2021-06-25
@Fragster

https://jsfiddle.net/2vbf3t0x/4/
if in the same container, then you need to limit the height (although 100% can also be achieved): https://jsfiddle.net/mqyjpch8/1/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question