To create an overlapping image and div block in Webflow, you will use Webflow's positioning system—typically relative and absolute positioning.
1. Add the Image and Div
- Drag in a parent container (usually a Div Block) that will hold both the image and the overlapping div.
- Add the image inside the container.
- Add another Div Block inside the same container. This will be the overlapping element.
2. Set Container Positioning
- Select the parent container (image wrapper).
- Set its position to Relative (under the Style panel → Layout → Position).
- This sets the frame of reference for absolute positioning of child elements.
3. Position the Overlapping Div
- Select the div block you want to overlap.
- Set its position to Absolute.
- Choose the alignment (e.g., top-right, center, bottom-left) or use custom positioning by setting pixel or percentage values for Top, Bottom, Left, Right.
4. Adjust Size and Z-Index
- Resize or style the overlapping div as needed using Width, Height, Background color, Padding, etc.
- If the div is behind the image, increase its Z-index (e.g., set Z-index to 2) to make it appear on top.
5. Optional: Add Style Effects
- Add rounded corners, shadows, or even text to the overlapping div for design purposes.
- Use Flexbox in the overlapping div if you want to center content inside it.
Summary
To make an image and a div block overlap in Webflow, wrap both inside a relative-positioned container, then set the overlapping div’s position to absolute and adjust its Z-index and layout settings.