Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1409997

    Hey There

    i want an overlay of text which goes over an image.
    The first Colorsection contains the image, the second contains the text.
    With negative Margin, I pull the text upwards over the text.
    In desktop and Tablet this works perfectly like you can see in the link.
    But in mobile, this does not work. the text is behind the image. (see Screenshot)
    Why is that?

    the color section with the image has an ID with this code:
    `#z-nach-hinten {
    z-index: -999!important;
    }
    `

    #1410161

    Hey Monika,
    Thanks for your patience, I see that you are using different elements for mobile and desktop, on desktop where it works the css above is not applied, so does it work if this same color section is also used for mobile?
    I’m not sure what is different between the two color sections or why this z-index isn’t working, but check if the desktop elements also work on mobile.
    It looks like you have another section between the desktop and mobile image sections that is hidden on all devices, try removing this since it is not in use.

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.