3 ms·
I could not understand how can you set a custom height for one of your grid items, and then align it top/bottom/center for example.
by usaphp 9y ago
I could not understand how can you set a custom height for one of your grid items, and then align it top/bottom/center for example.
- rado 9y agoBy setting the cell as flex with flex-direction: column. And wrapping the content in an extra div. This bothers me too, so advanced yet worse than tables in vertical alignment. Or am I missing something?
- rachelandrew 9y agoGrid also implements Box Alignment, just like flexbox. You can align the item inside the grid area. https://rachelandrew.co.uk/css/cheatsheets/box-alignment https://rachelandrew.co.uk/css/cheatsheets/box-alignment