How can I create an overlapping image and div box in Webflow?

TL;DR
  • Place the image and div inside a shared parent container set to relative positioning.  
  • Set one element to absolute positioning, adjust its placement, and use z-index to control which element appears on top.

To create an overlapping image and div box in Webflow, you'll need to use position properties and z-index settings to stack elements visually.

1. Add the Elements to the Canvas  

  • Drag in an Image and a Div Block from the Add Elements panel.  
  • Place both elements inside the same parent container (e.g., a Section or another Div Block) to control their relative positioning.

2. Set the Parent to Relative Position  

  • Select the parent container.  
  • In the Style panel, set the Position to Relative.  
  • This allows child elements to be positioned absolutely in relation to it.

3. Position the Image or Div Absolutely  

  • Select either the Image or the Div (whichever you want to move on top of the other).  
  • Set Position to Absolute.  
  • Adjust the TopBottomLeft, or Right values to move it to the overlapping position you want.

4. Use Z-Index for Layer Order  

  • Select the Image or Div.  
  • In the Style panel, set the Z-index to control which element appears on top.
  • Higher z-index = appears above elements with lower z-index

5. Optional: Use Margins or Padding  

  • Use margin or padding on one or both elements if you want to fine-tune their overlap visually.

Summary  

To overlap an image and a div in Webflow, put them in a shared parent container with relative positioning, then set absolute positioning on at least one element and adjust z-index to control which appears on top. Use padding or margins for layout tweaks.

Rate this answer

Other Webflow Questions