using max-content in minmax

Hi, I'm trying to achieve a grid using grid-template-columns: repeat(auto-fit, minmax(max-content, 1fr)); Unfortunately max-content is not an allowed property here. Is there any known workaround to achive such behavior?
1 Reply
Micah
MicahOP2w ago
Background: I have a couple of buttons that I want to place within the grid. The buttons should all have the same width and should not break inside.

Did you find this page helpful?