• I’ve got a strange problem on one blog (now in beta… don’t laugh at the temp logo…).

    When I create a link out of an italicized bit of text it strips the italics from the link.

    Example here: https://www.filmcriticblogs.com/2008/07/05/stephen-king-calls-kettle-black/

    Check out the page source and you’ll see the entire phrase “Secret Window, The Mangler, Maximum Overdrive, Dreamcatcher” is inside the em tag but only the non-linked titles are actually in italics; the other 2 are in standard font

    I’m sure I’m overlooking something, but I’m using the same style sheet elsewhere with no problems….

    Any help appreciated.

Viewing 1 replies (of 1 total)
  • I believe it’s because your “em” tag is outside the link. The tedious solution would be to do linked titled separately from unlinked titles. First italicize that link title then add the URL over that whole thing.

    <a href="https://google.com"><em>Like this</em></a>

    Alternatively, you could specific an anchor class that is italicized and use it for all title like that.

    a.italic
    {
    font-style: italic;
    }

    <a class="italic" href="https://www.filmcritic.com/misc/emporium.nsf/reviews/Secret-Window">Secret Window</a>

Viewing 1 replies (of 1 total)
  • The topic ‘italics stripped when turned into a link’ is closed to new replies.