W
W
worksss2017-09-04 12:26:54
css
worksss, 2017-09-04 12:26:54

Can you tell me how to make such a grid?

You need to automatically line up the blocks like 3fee8513777744759473f002d5c03805.pnghere.
Those. i do

.article-block
 .article
 .article
 .article
 .article
 .article

I set article-blockdisplay:flex, they will line up as they should.
Example
I'll make the first "article" with the help first-childof setting my own styles, my own size. How do I line up the remaining 4 "articles" using flexbox as shown in the picture. And all this should be in one block .article-block, since it will just fall out there as a list using php. Is it possible? In which direction to dig? Send pliz.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey delphinpro, 2017-09-04
@worksss

https://codepen.io/delphinpro/pen/GveGEY?editors=1100#

A
Alexander, 2017-09-04
@Palehin

I would not recommend completely typing on flexbox
https://codepen.io/palehin/pen/yowEve

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question