CSS Font Color

In this ultra simple nerd-free CSS tip, I will show you how to change the color of your fonts with CSS.

Check out the samples:

h2 { color: green; }
 
h4 { color: #9000A1; } 
 
p { color: rgb(0, 210, 87); }

Comments:

You are able to specify the color in either:

  • by Named color
  • by Hexadecimal
  • by RGB

Thanks,

Stefan Mischook

This post was written by: admin

This entry was posted on Sunday, February 14th, 2010 at 9:50 pm and is filed under CSS Fonts, Killer CSS Tips and Tricks. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Responses to “CSS Font Color”

  1. Woody56 says:

    Hey Stef…can you use the CSS syntax with an inline tag …

  2. Woody56 says:

    My example didn’t show up. It was the CSS syntax for the color green inside a span tag.

  3. admin says:

    You can place you css code right on the tag using the ’style’ keyword in any HTML tag.

    Please post your question on the forum … there you will be able to write out CSS code:

    http://www.killersites.com/community/

    Stefan

Leave a Reply