To achieve an image overflow on the top and bottom of a div/container in Webflow without extending its height, you’ll need to apply some specific settings. Here's how you can do it:
1. Adjust Container Settings
- Select the container that will hold the image in Webflow.
- Set the overflow property to hidden to ensure that excess content is cut off and won't affect the container’s height.
2. Configure the Image
- Select the image you want to overflow within the container.
- In the Position settings, set the position to absolute or relative. This allows you to position the image independently of the surrounding content.
- Use negative margins or positioning to move the image to overflow on the top and bottom of the container. Adjust the top and bottom values until the desired overflow effect is achieved.
3. Fine-Tuning
- Check that the width and alignment are set to ensure the image fills the container as needed.
- Preview the changes and adjust further if the overflow effect doesn’t appear as expected.
4. Consider Responsiveness
- Ensure you check and adjust the image’s overflow settings for different breakpoints to maintain responsiveness across devices.
Summary
By setting the container's overflow to hidden and adjusting the image’s positioning and margins, you can achieve the desired overflow effect without altering the container's height. Make sure to test across different devices and breakpoints for consistency.