php help

Out of context: Reply #8

  • Started
  • Last post
  • 8 Responses
  • sseo0

    So, I've been trying some of the suggestions, and the closest I've come to is being more specific in what I select to have the a:link:after property. By doing this:

    .entry > p a:link:after, .entry > p a:visited:after {
    content: " (" attr(href) ") ";
    font-size: 90%;
    }

    I was able to select just elements in the div called entry that are surrounded by p tags. This solves the problem for most images, but not all, as there are some images that get automatically wrapped in p tags. Now I just need to figure out how to strip those out...

    Anyway, thanks for the suggestions, this was not fun early in the day.

View thread