To adjust the width of a container block in Webflow, you’ll need to override the default container element settings or use a custom div block. Here’s how to do it:
1. Use a Custom Div Instead of the Default Container
- Default containers have width limitations (max-width of 940px for desktop) and cannot be directly resized in the Style panel.
- To get full control, add a div block instead of using Webflow’s built-in Container.
- Set a custom class on the div and use it as your new responsive container.
2. Set Custom Width on a Div Block
- Select the div block and assign a class name (e.g.,
Custom-Container
). - In the Style panel, set the Width to
100%
and a Max Width to control how wide it can be (e.g., 1200px
). - Use Auto margin on the left and right (click the center-align icon) to center the container.
3. Modify an Existing Container's Max Width (Not Recommended)
- You technically can override Webflow’s default container by selecting it, giving it a class, and adjusting its styles.
- Add a class to the container and then try to change the Max Width value in the Style panel.
- However, this may lead to inconsistencies since Webflow sets certain limits on the default container.
4. Ensure Responsiveness
- Use Webflow’s breakpoints (tablet, mobile landscape, mobile portrait) to check how your custom width behaves.
- Set Max Widths accordingly for different devices if needed.
Summary
To change container width in Webflow, use a custom div block with a class, set its width to 100%, and define a max width (e.g., 1200px
). Avoid modifying the default container if you want full styling control.