position: relative
with a fixed height.absolute
.top: 50%
and transform: translateY(-50%)
.overflow: visible
on the container and no overflow: hidden
on the parent wrapper.You can achieve an image overflow effect in Webflow by using absolute positioning and negative margins. This allows the image to extend beyond the div/container without increasing its height.
position: relative
on the container to allow absolute positioning of the image.absolute
so it can move independently of the container.top: 50%
and use negative transform: translateY(-50%)
to center it vertically.margin-top
and margin-bottom
).top
and bottom
values instead of centering.overflow: visible
on the container, so the image isn’t clipped.overflow: hidden
.By setting the container to position: relative
and the image to absolute
with negative margins or transforms, you can make the image overflow on both top and bottom without increasing the container's height.