To make a Div Block take full width within a parent element that has a maximum width (like 1100px) and a Flexbox layout, you need to override certain default behaviors within Flexbox.
1. Set the Parent Element
- Ensure the parent element (e.g., a Section or Container) has:
- Display: Flex
- Direction set to Vertical (Column) if you want the items to stack.
- Max Width: 1100px
- Optionally, set margin: auto on left/right to center it horizontally.
- Select the Div Block you want to stretch full width.
- Set the following styles:
- Width: 100%
- Flex Child: Grow if possible (under the Layout > Flex Child section in the Style panel)
- Minimum Width: 0 (optional, but prevents overflow issues)
3. Avoid Conflicts from Container Components
- If your Div Block is inside a Webflow Container element, note that Containers have a default max-width and padding.
- If full width within the parent is still not happening, use a Section or Div Block instead of the Container component as the parent.
4. Check for Padding and Margins
- Verify that no padding or margin is applied on the Div or parent that would reduce the apparent width.
- Remove any default padding applied by Webflow’s Container component if used.
Summary
Set the child Div Block to width: 100% and enable flex-grow, ensuring the parent Flexbox is in column direction with max-width: 1100px. Avoid restrictive containers or paddings that might limit width expansion.