utku
utku
KPCKevin Powell - Community
Created by utku on 9/11/2024 in #front-end
Why does setting `min-width: fit-content` on grid item influences the width of the sibling?
I already linked a pen in my question but I guess the code is a bit complicated, is it? If so, I can try to set up an example that doesn't involve Tailwind. Please let me know.
7 replies
KPCKevin Powell - Community
Created by utku on 9/11/2024 in #front-end
Why does setting `min-width: fit-content` on grid item influences the width of the sibling?
I'm using Tailwind and the grid is a regular grid, which has an implicit single column, similar to a good old div. I'm using grid to be able to use the gap property to adjust the spacing between the children (the grid items).
7 replies