H
H
Hayk Melikyan2019-10-14 19:02:21
Layout
Hayk Melikyan, 2019-10-14 19:02:21

How to properly type this with Flexbox?

FYIzCxb.png

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander, 2019-10-14
@a-kh

Easiest :
Parent the following styles:

display:flex;
flex-wrap: wrap;
justify-content: space-between;

Child:
width: 24%;
height: 200px;

The fifth block is:
.parent .child:nth-of-type(5) {
width: 48%;
}

You can play around with width / height, indents

A
azaza, 2019-10-14
@natojezlo

Yes, so insert the picture and do not worry)

A
Alexander, 2019-10-14
@zkelo

D
Dmitry, 2019-10-14
@DcFanoiD

Everything has already been said in flex. Look also towards the grid, it is already possible and not at all scary.

F
flexboxer, 2019-10-14
@flexboxer

d-flex
flex-row
justify-content- between
for the second also, just increase the width of the first element, in total three blocks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question