The issue with the ‘max width’ attribute on forms in Webflow often occurs due to the default behavior of form elements, which don't shrink as expected on smaller screens unless explicitly styled.
1. Understand How 'Max Width' Works
- Max width sets a maximum boundary, but doesn’t control the element’s behavior below that max if no other rules apply.
- By default, Webflow's Form block has
width: 100%
and may not adapt well without extra constraints or children influencing layout.
- When you place an inner element (like a paragraph) with its own max width, that element constrains the internal content and indirectly affects the form’s perceived layout.
- The browser forces the form to fit its children, and since the paragraph is constrained, the overall visual result is improved.
To make your form expand on desktops and shrink properly on mobile:
Select the form wrapper (or Form Block, not the Form element itself) in the Navigator.
In Desktop view, apply:
Max width (e.g., 600px
)
Width: 100% to allow scaling on smaller viewports
Margin: auto to center the form (optional, for visual layout)
Verify that the form isn't inside a container or div that limits its width or has fixed padding/margins that prevent responsiveness.
4. Alternative Fix (Use an Inner Wrapper)
- Wrap your form's contents in a div block.
- Apply your max width styling to this inner div, not the form itself.
- Let the form span 100% width so it remains compliant and fluid, while the internal wrapper restricts content width.
5. Check for Overflow or Fixed Widths
- Inspect all parent elements of the form in mobile view.
- Remove any fixed widths or padding/margin that cause the form to overflow or get cut off.
- Enable overflow: visible on parents if clipping is happening.
Summary
Webflow forms sometimes ignore max width
alone due to their default structure. To ensure responsiveness, wrap form content in an inner div with max width
and width: 100%
, or adjust the parent container to maintain scalable constraints.