Grid auto-fit

Hello! I am trying to make two different columns in grid become one without using media queries.

I want one of them to be 1fr and the other auto.

The one that is auto should never be smaller than 10rem, and the main one shouldnt be smaller than 20rem.

I tried this, but it doesnt work.
repeat(auto-fit, minmax(20rem, 1fr) minmax(10rem, auto))
Was this page helpful?