Quote:
Originally Posted by CubGeek
I'm replying here since this is where the conversation happened at the time, but if this makes more sense in that linked topic, lemme know and I'll delete and post it there.
|
You can always create a separate thread, then reference the original topic/posts.
(This specific thread is mostly for Regex help.)
Quote:
Originally Posted by CubGeek
I've run into a condundrum. The author of my current project has several characters who use an "internal monologue," so I've been using the <i> tag for those. For words that need emphasis it's the <em> tag. Simple so far.
However, the author also has words in the internal monologue that need emphasizing... For just visuals I'd take the emphasized word out of the <i> tags and restart the <i> tag after the word:
|
I agree with isarl's solution completely.
Italics-within-italics or emphasis-within-emphasis is like an ON/OFF switch. You just flip it to its opposite:
Code:
i i {
font-style: normal;
}
em em {
font-style: normal;
}
i em {
font-style: normal;
}
- - -
The first one says:
"IF there's an italics inside an italics... make it normal."
Example:
Code:
<i class="monologue">That damn ship, the <i>USS Liberty</i>, was like a spooky ghost ship.<i>
Usually, ship names would be in italics... but since it's buried in a thought, the ship will become roman/normal/un-italic temporarily to distinguish it from the surrounding text.
Similar situation with the other 2 CSS rules.