|
|
|
|
|
by dimal
1178 days ago
|
|
Grid isn't a good solution for this particular problem because the layout depends on the intrinsic size of the content. Grid is good for when you want the container to define the layout and have the content flow into it. Flex is good for when you want the layout to adapt to the content, like in this case. |
|
See elsewhere in the thread where I solved this and / or submit a fork your own version using flex.