Hi! I want to put a diffused ellipse behind an image in the hero section but its stays on top of the image for some reason. Could someone help? a view link provided
Here is my site Read-Only: https://malaks-dapper-site.webflow.io
Hi! I want to put a diffused ellipse behind an image in the hero section but its stays on top of the image for some reason. Could someone help? a view link provided
Here is my site Read-Only: https://malaks-dapper-site.webflow.io
Hi Malak,
I think it’s likely that you need to set your image/containing div to position: relative and add a z-index to stack your elements, but without your read-only link it’s difficult to say for sure.
Could you provide your share your read only link, so we can take a look at your site in the designer?
Here is me read only link : https://malaks-dapper-site.webflow.io
here is the link Webflow - Malak's Dapper Site
To fix this issue, you’ll need to adjust the positioning of the ellipse and the image using CSS. Here are the steps you can follow:
<div>
element for the ellipse and give it a class or ID.Here’s an example of the CSS you can use:
.diffused-ellipse {
position: absolute;
z-index: -1;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.hero-image {
position: relative;
z-index: 1;
}
In this example, the diffused ellipse is given a position of “absolute” so that it can be positioned relative to its parent container. The z-index is set to -1 so that it appears behind the image. The top, bottom, left, and right properties are set to 0 so that the ellipse spans the entire width and height of its parent container.
The image is given a position of “relative” so that it stays within its parent container. The z-index is set to 1 so that it appears on top of the ellipse. https://famewide.com/
I hope this helps! Let me know if you have any further questions or if you need more assistance.