• Hey Guys,
    I want to be able to change the color of just a few words in a post as I am writing it. I’m not far enough along to create a tag and all that stuff. What code would I surround the text with to change its color?
    thanks,
    stikguy

Viewing 4 replies - 1 through 4 (of 4 total)
  • The best way to do that is:
    <span style="color: yourcolorhere;">your text here</span>

    Thread Starter stikguy

    (@stikguy)

    etoile,
    Thanks for the quick reply. Got it.
    Stikguy

    Similarly to what etoile suggests, I’d do:
    <span class="yourclassname">your text here</span>
    Then I’d make an entry in your style.css to style the span with the colour you desire.

    This has the added advantage that you can change the colour and styling of the spans over your entire site by making a simple change in your css, rather than having hard coded styling in each post/pages.

    you would think by now someone would have created a plugin that would allow you to change colors of the text in a post on the fly, without the use of HTML…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘changing color of only a couple words in a post’ is closed to new replies.