Can I set column width to 1fr
with grid-auto-flow: column
?
grid-template-columns: repeat(4, 1fr)
grid-template-columns: repeat(4, 1fr)
I want all columns to have the same width, based on the widest column, but so far I can only do it by specifying the number of columns:
https://i.sstatic.net/wZ6e3.png
grid-auto-flow: column
I need to use grid-auto-flow: column
because the number of columns may vary, and I want them all to have equal width without setting it in pixels: