To overlay a text with a link on top of each image in a Webflow Grid layout, you’ll need to use position styling and proper nesting inside Grid Cells.
1. Set Up the Grid Container
- Select your Grid element in the canvas.
- Add one Div Block per grid cell that will hold both the image and the overlay text.
2. Structure the Grid Cell Content
- Inside each grid cell Div, add:
- An Image element.
- A Text Link element or a Text Block inside a Link Block for overlays.
3. Style the Wrapper Div
- Select the outer Wrapper Div (the one inside each grid cell).
- Set its position to Relative so that absolute children (overlay) are positioned based on this wrapper.
4. Style the Text or Link Overlay
- Select the Text Link or Link Block (your overlay).
- Set the position to Absolute.
- Set Top: 0%, Bottom: 0%, Left: 0%, Right: 0% if you want it to cover the entire image, or use custom positioning like Bottom: 10px, Left: 10px for corner placement.
- Adjust Z-index to 1+ (make sure it’s higher than the image).
- Style fonts, background color (optional for readability), padding, and hover effects.
5. Adjust the Image Styling
- Ensure the Image stays behind the overlay by:
- Leaving it with default Static positioning.
- Optionally set Z-index: 0 if needed.
6. Responsive Tweaks
- Check the layout on different breakpoints.
- Adjust font size, positioning, or stacking as needed in Tablet and Mobile views.
Summary
To place a text link over images in a Grid, wrap each image and overlay in a relative-positioned Div, and set the text or link to absolute-position within it. This ensures your overlay sits visually on top of each image and can be styled separately.