Hi, I’ve been trying for about an hour to get a text box to overlap with an image. The platform I’m currently using allows me to set the margin as -150 to get it to overlap in the one direction (ie image on left, textbox on right), but when I try to reverse this (ie the textbox on the left with the image on the right), the image overlaps the text.
I read somewhere to use the z-index: -1 but that didn’t work.
.DbOIA {
display: flex;
flex-direction: column;
grid-column: 7 / 13;
align-self: flex-start;
z-index: 1; /* Set this higher to be on top */
position: relative; /* Ensure this is set for z-index to work */
}
And this:
.image-aca5c4c4 {
display: flex;
flex-direction: column;
grid-column: 7 / 13;
align-self: flex-start;
z-index: 0; /* Lower value to be behind the text */
position: relative; /* Ensure positioning is set */
}