N
N
Norum2021-04-30 03:02:52
Flexbox
Norum, 2021-04-30 03:02:52

How is Grid different from FlexBox?

In what cases and what to use and what advantages do they have over each other?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
approximate solution, 2021-04-30
@Norum

In what cases and what to use and what advantages do they have over each other?

Use grids when there is a non-standard layout of blocks, or for quick typing of a layout template:
608bb9cf436ed367908873.jpeg
Use flexes when you need to arrange elements along the axes, horizontal or vertical, in 2 lines of code.
In summary: usually used together, and one tool complements the other.

N
Nikita Chernov, 2021-04-30
@DRIMchansky

https://youtu.be/ST1EvRemB_U

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question