The issue with Webflow's auto-fit grid not working even after removing FR, VH, or % values may stem from other hidden or invalid constraints.
1. Check for Min/Max Width or Height on Grid Children
- Auto-fit requires child elements to have valid, flexible sizing, especially when using
minmax() functions. - If any grid item or cell has a fixed width or min/max constraint, it may break the auto-fit behavior.
- Inspect each child element in the grid and remove any fixed dimensions, especially min-width, max-width, width, min-height, and max-height.
2. Confirm Grid Column Definition Uses auto-fit
- Webflow’s visual grid editor doesn’t currently expose the full ability to define
repeat(auto-fit, minmax(...)) directly. - In most cases, this behavior must be simulated using custom code or manually adjusting columns in a way that mimics responsiveness.
3. Double-Check for Hidden Units
- Even if you’ve deleted
fr, %, or vh units visually, Webflow may retain a ghost value. - Try switching to custom code view or re-selecting the grid area and resetting column settings to auto.
4. Avoid Nesting Grids with Constraints
- If you’re placing a grid inside another grid or a flex container with restricted dimensions, it may limit auto-fit responsiveness.
- Make sure the parent container allows for full width expansion, ideally set to
auto or 100% without max-width constraints.
5. Check for Custom Code Conflicts
- If you’ve used custom CSS to apply grid definitions manually, ensure that
auto-fit is used correctly in a repeat() function like:
repeat(auto-fit, minmax(150px, 1fr))
- Incorrect syntax or applying it without
minmax() will prevent it from functioning.
6. Preview vs. Designer Inconsistencies
- Sometimes, auto-fit layouts may not behave as expected in Designer view.
- Always verify behavior in Preview mode or live publish, as dynamic resizing isn’t fully rendered within the Designer panel.
Summary
To fix auto-fit not working in Webflow, ensure no grid children have fixed sizing constraints, the parent container allows flexible width, and "ghost" units or broken column settings are cleared. Webflow may not natively support full auto-fit functionality, so checking in Preview and using custom code may be necessary.