Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
`auto-fit` in combination with `min-content` - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
6mo ago
•
1 reply
Koner
`auto-fit` in combination with `min-content`
Heyy
, I have a new question
. I was just experimenting with
auto-fit
auto-fit
when I ran into this issue
. It says that the
grid-template-columns
grid-template-columns
value is invalid
:
https://jsfiddle.net/KonerDev/c54gxq83/1/
If I replace the
auto-fit
auto-fit
with e
.g
.
, 4
, it works
, but then I loose the auto
-wrapping behavior
.
What
's wrong here
?
Create a grid layout with multiple items - JSFiddle - Code Playground
JSFiddle
- Test your JavaScript
, CSS
, HTML or CoffeeScript online with JSFiddle
.
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Grid auto-fill or auto-fit min and max-width?
KP-C
Kevin Powell - Community / help
8mo ago
Auto and min content property for grid-template-rows
KP-C
Kevin Powell - Community / help
7mo ago
How does min-content differs from max-content?
KP-C
Kevin Powell - Community / help
11mo ago
Is it possible to make input element fit-content with css?
KP-C
Kevin Powell - Community / help
11mo ago