This Season
 

How to Change the Text Color in MediaWiki

Changing the text color in a MediaWiki entry can highlight important text and set it apart from other text on the screen. You can use MediaWiki coding to do this in one of three ways: By changing the color of the text, the background color around the text or both the text and the background color. MediaWiki uses the <span> tag to assign colors to the text or text background.

Related Searches:
    Difficulty:
    Moderately Easy

    Instructions

    1. Change Text Color

      • 1

        Copy and paste <span style="color:#FF0000"> My text. </span> into the MediaWiki entry. This will create red text in the entry.

      • 2

        Change the “#FF0000” hexadecimal code to change the color of the text. You can view other hexadecimal color codes that MediaWiki accepts on MediaWiki’s “Wiki color formatting help” meta page.

      • 3

        Change “My text.” to your own text and save your MediaWiki entry to see the changes in text color.

      Change Text Background Color

      • 1

        Copy and paste <span style="background:#FF0000"> My text. </span> into the MediaWiki entry. This will create a red background around the text in your entry.

      • 2

        Change the “#FF0000” hexadecimal code to change the color of the text background. You can view other hexadecimal color codes that MediaWiki accepts on MediaWiki’s “Wiki color formatting help” meta page.

      • 3

        Change “My text.” to your own text and save your MediaWiki entry to see the changes in text background color.

      Change Both Text and Background Color

      • 1

        Copy and paste <span style="color:#FFFFFF; background:#FF0000"> My text. </span> into the MediaWiki entry. This will create a white colored text on a red background in your entry.

      • 2

        Change the two hexadecimal codes to change the color of the text and the text background.

      • 3

        Change “My text.” to your own text and save your MediaWiki entry to see the changes in text and text background color.

    Related Searches

    References

    Resources

    Read Next:

    Comments

    You May Also Like

    Follow eHow

    Related Ads