Wiki Code Cookbook: Difference between revisions

From Portland NET Wiki
Line 50: Line 50:
<pre>
<pre>
<span style="background:black; color:white">'''All PBEM employees must stop crying before returning to work.'''</span>
<span style="background:black; color:white">'''All PBEM employees must stop crying before returning to work.'''</span>
</pre>If I want to make that text string less of an eyesore, I might also take care to color highlight a space before and after, like this:
</pre>
For design reasons, you may want a space before or after the sentence that is the same color as the highlight so it doesn't look quite so cut off. That's an extra layer of code. The syntax will just cut off a blank space even if you have it inside the brackets. So instead, you have to have a symbol, like an asterisk, bookending your sentence that is the color of the background.


<span style="background:black; color:white">''' All PBEM employees must stop crying before returning to work. '''</span>
<span style="background:black; color:black">*</span><span style="background:black; color:white">'''All PBEM employees must stop crying before returning to work.'''</span><span style="background:black; color:black">*</span>
<pre>
<span style="background:black; color:black">*</span><span style="background:black; color:white">'''All PBEM employees must stop crying before returning to work.'''</span><span style="background:black; color:black">*</span>
</pre>


In that example, I also made the text white. But naturally, you can change the color of the text, also, to create all manner of page design monstrosity.
In that example, I also made the text white. But naturally, you can change the color of the text, also, to create all manner of page design monstrosity.