Forums

italics stripped when turned into a link (2 posts)

  1. cnull
    Member
    Posted 3 years ago #

    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: http://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.

  2. ladycrow
    Member
    Posted 3 years ago #

    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="http://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="http://www.filmcritic.com/misc/emporium.nsf/reviews/Secret-Window">Secret Window</a>

Topic Closed

This topic has been closed to new replies.

About this Topic