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.
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