• I think I know the answer but I wanted to make sure before I go to areas that I have little experience in.

    I want to change colors of some sentences in specific posts. For example in my last post on:
    http://www.digitalcollege.org/wordpress

    I want to change the sentence of “slower computers…
    to another color to highlight the difference .

    Suggestions?

    Tnx

Viewing 2 replies - 1 through 2 (of 2 total)
  • My suggestion is to define a couple of classes in your CSS and then apply them via a <span>.

    Example, in your CSS you could do this:

    .color-01 {
    color: #f00;
    }

    .color-02 {
    color: #0f0;
    }

    Then in your post, wrap the text like this:

    This is some text that should be <span class="color-01">the color RED</span> and here is some text that should be <span class="color-02">the color GREEN</span>.

    Just edit the post and change slower computers into


    <span class="highlight>slower computers</span>

    Then in your css file put this in


    .highlight { background-color: #FFFF00;}

    and change FFFF00 to the colour you want.

    Edited:

    Hehe, you beat me to it nuclearmoose, but if you want to change the font color use color:……….., if you want highlighting use background-color: …………

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS Newbie’ is closed to new replies.