A
A
Aigelimu Urgent2022-01-03 18:22:47
css
Aigelimu Urgent, 2022-01-03 18:22:47

Is it possible to use flex inside the grid block?

I'm wondering if it's possible to use grid for a block, to arrange the blocks in grids, and the content inside these blocks to use flex?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Varlakov, 2022-01-03
@AlexandrVV86

You can / you can and vice versa / you can place the grid in the grid:
The simplest example, the page structure is made by the grid, and inside the tags shove whatever you like:
body{
grid-template-rows: auto 1fr auto;
}
HTML:
header
main
footer
When I first got acquainted with grid, I also had such a question, but I also used yandex:
https://css-live.ru/articles-css/grid-fleksboks-mo...
https://www.youtube.com/watch?v=1tUuR4KiQ5M
https://webformyself.com/grid-dlya-maketa-flexbox-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question