Basic example
example.css
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
The repeat() function repeats track listings, including auto-fit and auto-fill.
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));repeat() is a modern CSS feature.
Supported in current major browsers with progressive enhancement.
Bottom line: Keep a readable fallback when using newer syntax.
Continue with fit-content().
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful