L
L
Leuvarden2017-03-19 22:34:29
css
Leuvarden, 2017-03-19 22:34:29

How to make a layout with an uneven grid?

What is the best way to lay out such a layout using flexbox? e13310b2a912489bba1a778b99144b33.png
Split into two containers of three lines, or can you somehow solve it beautifully using the flex-wrap property?
I did this ( link to codepen ), but somehow it turns out ugly.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
S
Sergey delphinpro, 2017-03-19
@leuvarden

Keep codepen.io/delphinpro/pen/BWJEgG
Simple linear structure. Within certain limits , you can change the position of the tiles without changing the css code.
If you think a little more, you can expand these limits, add other sizes of tiles. But it takes time, which I don't have.

D
Dartess, 2017-03-23
@Dartess

Paradise for grids x) and so that is a polyfill ... ahem ...

S
strangeprojects, 2017-03-27
@strangeprojects

Flexbox is pretty simple. Even without using column. Of course, you will have to play around with flex-grow, flex-basis, wrap/no-wrap and flex containers inside flex items.fa53e61c775440f9aac0f948b1f87d27.PNG

I
iBird Rose, 2017-03-19
@iiiBird

since on the screen you can’t even arrange them normally with flex. only absolute. so either use masonry or make your own plugin based on it

M
Maxim Timofeev, 2017-03-20
@webinar

Isn't it easier to take something ready?
type:
isotope.metafizzy.co/layout.html

P
Polina Emelyanova, 2017-03-24
@bugo_aneo

Smoke this option
too codepen.io/emelyanova/pen/bqrwmE

S
Stalker_RED, 2018-01-15
@azqwert

Throw away this ancient horror, the list of TLDs has been expanded for a long time. Where is travel or mobi or christmas, for example?
There is a ready-made function filter_var () to check email

if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
    echo "E-mail адрес '$email' указан верно.\n";
} else {
    echo "E-mail адрес '$email' указан неверно.\n";
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question