The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Link and img with an :after

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #43715

    Hello all,

    I have created and img with an :after attribute. The :after is actually positioned absolute and covers the whole image with a higher z-index than the image. In the HTML I sandwitched the img with an anchor link but I can’t click the link in the browser because the :after is covering the whole img and has a higher z-index. Is there a way around this without too big of a change in the CSS and HTML? I don’t really want to get rid of the :after attribute.

    Thanks again.

    Kitty Giraudel

    Could you make a CodePen so we can play around your code please?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.