Forums

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

Home Forums CSS [Solved] a:after help needed

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #176556
    Tiwas
    Participant

    Hi guys,

    I hope it’s ok that I made two threads – they’re not really related except for being in the same style sheet.

    My problem is that I’ve added the a:after trick to show the link address in printed pages. However, I don’t want to show links that are around images. Is there a way to differentiate (sp?) between <a>some text</a> and <a><img /></a>?

    Thanks!

    #176564
    Tiwas
    Participant

    Hi,

    I guess this illustrates what I’m looking for: http://jsfiddle.net/44nba/ . Note that when there’s an image inside the anchor link I don’t want it to print the address.

    Thanks :)

    #176579
    Tiwas
    Participant

    Yes, that’s excellent :) It’s not possible to do without scripting? If nothing else, it makes me somewhat happy that there wasn’t some glaringly obvious way to do it that I couldn’t see :)

    #176582
    Tiwas
    Participant

    I guess the best thing is doing it automatically – then it’ll even be compatible with the existing articles :)

    I guess the best place to put the script is just before </body>?

    #176585
    Tiwas
    Participant

    Thanks for that :) I already have a block in the end of the template, so I’ll add to that. My next “project” is to collect my modifications to the template in blocks so it’ll be easier to find them next time I have to either upgrade or change :)

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