Yarias
12-04-2005, 08:07 PM
I was wondering if there was some way to simplify the following formatting from a story.
<p>He remembered... <span class="flashback">On that day (more text)</span></p>
<p class="flashback">Another full paragraph in flashback</p>
<p><span class="flashback">And then he died.</span> Back to regular story text.</p>
The CSS pertaining to this section is as follows:
.flashback {
font-family: monospace;
background-color: #2B3541;
}
---------------------------------------------------------
Is there any way to make the code more like this without changing the semantically correct paragraphs to two line break tags?
<p>He remembered... <START_TEXT_STYLING>On that day (more text)</p>
<p>Another full paragraph in flashback</p>
<p>And then he died.</END_TEXT_STYLING> Back to regular story text.</p>
<p>He remembered... <span class="flashback">On that day (more text)</span></p>
<p class="flashback">Another full paragraph in flashback</p>
<p><span class="flashback">And then he died.</span> Back to regular story text.</p>
The CSS pertaining to this section is as follows:
.flashback {
font-family: monospace;
background-color: #2B3541;
}
---------------------------------------------------------
Is there any way to make the code more like this without changing the semantically correct paragraphs to two line break tags?
<p>He remembered... <START_TEXT_STYLING>On that day (more text)</p>
<p>Another full paragraph in flashback</p>
<p>And then he died.</END_TEXT_STYLING> Back to regular story text.</p>