Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question