• Hey guys how do I change the color of my entries that I’ll post? I don’t mean changing it via the stylesheet, I mean changing, say, a line or two from a 10-line entry, etc. Just those particular line. What’s the code (like < em > for emphasis) to change the color of specific lines in the entry?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Most use something like this:

    This is normal text but <span style="color: green;">this text I want to be green</span>, don't you know.

    The span tag is designed for inline assignment of a style or class or id to a section of your page; but something like this would work as well:

    <em style="color: green">The text I want to be green is also emphasized</em>

    In fact, the style attribute works with most tags.

    Thread Starter jackburton2005

    (@jackburton2005)

    Hmm, neither seems to work. Is it because I’m using those number thingie (BFC4CB) instead of the actual color name?

    are you adding the # symbol when putting in the color number?
    <em style=”color: #BFC4CB”>The text I want to be green is also emphasized

    As IceCold notes, make sure the hex color value starts with #. Otherwise the browser won’t know it’s a hex value.

    (I prefer the term “number thingie,” but it gets weird looks at design meetings. :)

    Thank you for this — I’ve been wanting to do different colors sometimes I didn’t know how to do it properly.

    Anyone know how to make the entire post a different color, for a specified user?

    eg.
    user 1 = blue
    user 2 = black
    user 3 = green

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing font color in entry posts’ is closed to new replies.