T
T
trepux2018-08-26 12:33:28
Flexbox
trepux, 2018-08-26 12:33:28

How to make such a grid on flex without js?

Good afternoon. Tell me, is it possible to make such a plan a grid on flex without using js?
5b8273a01fdb6765331950.png
The site is responsive, so the green block should change width and not fall off. It is important that all orange blocks go in a row inside one parent (without breaking them into blocks).
Solutions come to my mind only through floats, but I would like to use flexes.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrej Sharapov, 2018-08-26
@Madeas

on flexes, most likely it won’t work without splitting, try grids

S
siarheisiarhei, 2018-08-26
@siarheisiarhei

css selector point block

.flex-item:nth-child(2) {
    order: 0;
    flex: 0 1 auto;
    align-self: auto;
    }

and, twist as you like ....

A
Amir Alimzhanov, 2018-08-26
@Amirez

Only Grid layout will help, or if it's js, then masonry.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question