Webflow sync, pageviews & more.
NEW

Why does the 'max width' attribute not work on forms in Webflow? I am attempting to increase the size of my form for desktop screens while maintaining responsiveness for mobile devices, but when I use 'max width', it gets cut off on phones. I noticed that when I place an element like a paragraph inside the form and apply the 'max width' attribute, the form displays correctly with the desired maximum width and remains responsive on smaller screens.

TL;DR
  • Add a div wrapper inside the form and apply max width and width: 100% to that div, not the form itself.
  • Ensure parent containers don't have fixed widths or restrictive paddings, and allow overflow if needed for mobile responsiveness.

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.

2. Why a Paragraph Inside the Form Works

  • 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.

3. Proper Setup to Make Forms Responsive

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.

Rate this answer

Other Webflow Questions