P
P
Pavel Sheludko2021-12-28 18:21:30
css
Pavel Sheludko, 2021-12-28 18:21:30

How to fit one item per line when (max-width: 767px) is reached, using flex-box technology?

How to fit one item per line when (max-width: 767px) is reached, using flex-box technology?

I know that to indicate the achievement (max-width: 767px) - media is used.
Flex-box is used because it was originally specified (display: flex).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MichaelFil, 2021-12-31
@MihailFil

In the media query, specify for the desired block flex-basic: 100%;
Or for a parent block with display: flex; specify flex-direction: column;
This is if I understand the question correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question