Forums

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
    Posts
  • #43715
    ChrisB
    Participant

    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.

    #129922
    Kitty Giraudel
    Participant

    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.