Changing the Colour of Certain Words

classic Classic list List threaded Threaded
1 message Options
GregChapman GregChapman
Reply | Threaded
Open this post in threaded view
|

Changing the Colour of Certain Words

This post was updated on .
If you want certain words or phrases to appear in a different colour but don't want to get into the business of writing all your posts using full HTML code, then you will need to change the default styling for one of the few tags that Nabble does allow you to use without checking the "Message is in HTML Format" box.

The tags available for this treatment are: Bold, Italic and the headings H2-H6. While a few other tags may work, it would be unwise to rely on them as Nabble does not document their support.

To make a single instance text tagged as bold appear in red:


To generate red text you just add the code - style="font-weight: normal; color:red;" - to the opening "b" tag like this:
<b style="font-weight: normal; color:red;">red text</b>
As you see this code removes the bold and changes the colour of the text enclosed in the b tags.

To make All Text in the forum tagged as bold appear in red:


If you wish to apply this formatting globally across your whole forum, do this:

Go to: Options > Application > Change appearance
and add this code to the CSS box.
div.root-text b, div.message-text b {
  font-weight: normal;
  color:red;
}

Greg