How can I make the nav bar go full width in Webflow when the built-in container is restricting it?

TL;DR
  • Remove the Navbar from the default Container and place it directly in the Body or a full-width Section or Div.  
  • Set the Navbar and all parent elements to 100% width with no max-width, then ensure responsive design by testing and adjusting padding for smaller screens.

If your navbar is restricted by a built-in container, you can make it full width by removing or bypassing that container element. Here's how to do it:

1. Remove or Avoid the Default Container

  • Webflow's default Container element has a max-width (typically 940px or 1140px).
  • To go full width, do not place your Navbar inside a Container.
  • If it’s already inside a Container, select the Navbar and drag it out to the Body or a Section directly.

2. Set Navbar to Full Width

  • Select the Navbar element in the Navigator.
  • In the Style panel, set its Width to 100%.
  • Ensure its Display is set to Block or Flex (not Inline Block).

3. Adjust Any Parent Section

  • If your Navbar is inside a Section or Div, ensure that parent element also has:
  • Width: 100%
  • Max Width: none (or unset)
  • Padding/Margin: adjust as needed if it looks too narrow.

4. Recreate a Full-Width Field if Needed

  • Optionally use a Div Block instead of a Container.
  • Set this Div Block:
  • Width: 100%
  • Max Width: none
  • Place your Navbar inside it for clean structure and styling control.

5. Test Responsiveness

  • Review the navbar in Tablet and Mobile views to ensure layout isn’t broken.
  • Add padding if needed to keep links from hitting the edges on smaller screens.

Summary

To make your Navbar full width in Webflow, remove it from the default Container, set its width to 100%, and ensure any parent elements don't restrict it with max-width settings.

Rate this answer

Other Webflow Questions