Change font colour using css
April 23rd, 2008
Where did that red text come from?
Oikofugic Design
From the cascading style sheet
You might need to set youeself a style sheet at this point
Formatting text using css, we all know the basics, for example how to change the colour of a h2 tag.
Use the property color.
h2 {color: red;} in a named value or below as a hex value h2 {color: #dd0000;}
If you want to mix it up a little and change the color of one word within the text you can enclose it in a span tag and style accordingly.
<span class="green">Inserted words</span>
CSS
.green {color: green;}
Next time: We look at font-family, how your text is seen by the browser.
Entry Filed under: CSS Reaction
3 Comments Add your own
1.
css örnekleri | June 27th, 2008 at 2:39 pm
css Font examples , Properties , Attribute – - //
http://www.css-lessons.ucoz.com/font-css-examples.htm
2.
Setting up a css styleshe&hellip | August 10th, 2008 at 10:06 am
[...] post changing font color with css is getting quite a few hits, but it assumes a certain level of knowledge. So here I will show you [...]
3.
snxx | March 24th, 2009 at 6:13 am
acele css ye ıhtıyacım var
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed