<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CSS Tutorial &#187; CSS Fonts</title>
	<atom:link href="http://www.csstutorial.net/category/css-fonts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csstutorial.net</link>
	<description>CSS Tutorial</description>
	<lastBuildDate>Mon, 30 Jan 2012 06:00:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>All Caps with CSS</title>
		<link>http://www.csstutorial.net/2010/05/changing-the-font-to-all-caps-with-css/</link>
		<comments>http://www.csstutorial.net/2010/05/changing-the-font-to-all-caps-with-css/#comments</comments>
		<pubDate>Tue, 11 May 2010 10:40:49 +0000</pubDate>
		<dc:creator>Andrea Barnett</dc:creator>
				<category><![CDATA[CSS Basics]]></category>
		<category><![CDATA[CSS Fonts]]></category>
		<category><![CDATA[Killer CSS Tips and Tricks]]></category>
		<category><![CDATA[all caps]]></category>
		<category><![CDATA[capital letters]]></category>
		<category><![CDATA[uppercase fonts]]></category>

		<guid isPermaLink="false">http://www.csstutorial.net/?p=698</guid>
		<description><![CDATA[While text in general is hard to read when written in all caps - and considered the electronic version of yelling - using CAPS for emphasize is a handy tool. Headers are a place where capitalization is frequently used.  And to assure that your header is displayed uniformly throughout the site without having to worry about actually writing in all caps, just use CSS.]]></description>
			<content:encoded><![CDATA[<p>While text in general is hard to read when written in all caps &#8211; and considered the electronic version of yelling &#8211; using CAPS for emphasize is a handy tool.</p>
<p>Headers are a place where capitalization is frequently used.  And to assure that your header is displayed uniformly throughout the site without having to worry about actually writing in all caps, just use CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h1 <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>With this, everything that has the h1 tag applied, <span style="text-transform: uppercase;">will appear in all caps</span>.</p>
<p>Another interesting text-transformation property is &quot;capitalize&quot;</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h1 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">capitalize</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p style="text-transform: capitalize;">With this, all your words will begin with a capital letter!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.csstutorial.net/2010/05/changing-the-font-to-all-caps-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Style Fonts with CSS</title>
		<link>http://www.csstutorial.net/2010/03/styling-fonts-with-css/</link>
		<comments>http://www.csstutorial.net/2010/03/styling-fonts-with-css/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 10:51:04 +0000</pubDate>
		<dc:creator>Andrea Barnett</dc:creator>
				<category><![CDATA[CSS Basics]]></category>
		<category><![CDATA[CSS Fonts]]></category>
		<category><![CDATA[CSS Misc]]></category>
		<category><![CDATA[Killer CSS Tips and Tricks]]></category>
		<category><![CDATA[deprecated font tag]]></category>
		<category><![CDATA[font tag]]></category>
		<category><![CDATA[styling fonts]]></category>

		<guid isPermaLink="false">http://www.csstutorial.net/?p=552</guid>
		<description><![CDATA[The FONT tag is dead.  Long live CSS!  Please help spread the word, too many people STILL have not gotten that memo and merrily use their deprecated font tags (along with the table-based layouts and improper doctypes).  But now we all know - no more excuses.]]></description>
			<content:encoded><![CDATA[<p>The FONT tag is dead.  Long live CSS!  Please help spread the word, too many people STILL have not gotten that memo and merrily use their deprecated font tags (along with the table-based layouts and improper doctypes).  But now we all know &#8211; no more excuses.</p>
<p>The easiest way to apply a font style to your website, is right there with your body tag:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">body <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> Times<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And there you have it &#8211; now all the text on your page will be Times New Roman, and if that font is not installed on the viewer&#8217;s computer, then they&#8217;ll see the text in Times, and if they don&#8217;t have that either, then the text will display in whatever default serif font they have installed.</p>
<p><strong>Side Note:</strong> Serif is the style with little hooks &#8211; for example <img src="http://www.csstutorial.net/wp-content/uploads/2010/03/serif.jpg" alt="" title="A &#039;Serif&#039; Font - Times New Roman" width="316" height="50" class="aligncenter size-full wp-image-556" /> opposed to <img src="http://www.csstutorial.net/wp-content/uploads/2010/03/sans-serif.jpg" alt="" title="A &#039;Sans-Serif&#039; font - ARIAL" width="347" height="50" class="aligncenter size-full wp-image-558" />   (which is shown in Arial &#8211; see the difference?).</p>
<p>Do note the quotes around &#8220;Times New Roman&#8221; in the CSS above &#8211; that&#8217;s because that font name consists of more than one word.  The quotes keep it together.</p>
<p>Sometimes, you may not want your entire page in one font, but might want your headers to stick out.  Easy enough, just style them separately:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Verdana<span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.csstutorial.net/2010/03/styling-fonts-with-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Style Headings with CSS</title>
		<link>http://www.csstutorial.net/2010/02/styling-headings-with-css/</link>
		<comments>http://www.csstutorial.net/2010/02/styling-headings-with-css/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 11:58:54 +0000</pubDate>
		<dc:creator>Andrea Barnett</dc:creator>
				<category><![CDATA[CSS Basics]]></category>
		<category><![CDATA[CSS Fonts]]></category>
		<category><![CDATA[CSS Misc]]></category>
		<category><![CDATA[Killer CSS Tips and Tricks]]></category>
		<category><![CDATA[h1]]></category>
		<category><![CDATA[h2]]></category>
		<category><![CDATA[h3]]></category>
		<category><![CDATA[styling headings]]></category>

		<guid isPermaLink="false">http://www.csstutorial.net/?p=431</guid>
		<description><![CDATA[Different browsers have different default styling for headings - the h1, h2, h3, etc. tags. However, with a little bit of CSS, we can style them any way we like.]]></description>
			<content:encoded><![CDATA[<p>Different browsers have different default styling for headings &#8211; the h1, h2, h3, etc. tags. (<a href='http://www.csstutorial.net/wp-content/uploads/2010/02/heading-styling01.html'>Default Heading Styling</a>).  However, with a little bit of CSS, we can style them any way we like.</p>
<p>If we want to apply certain styles to all our headings &#8211; for example margins to create a larger space above the header than between it and the following paragraph, write the CSS like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h1<span style="color: #00AA00;">,</span> h2<span style="color: #00AA00;">,</span> h3<span style="color: #00AA00;">,</span> h4<span style="color: #00AA00;">,</span> h5 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">35px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>(See the <a href='http://www.csstutorial.net/wp-content/uploads/2010/02/heading-styling02.html'>Styled Margins</a>.)  Also note that the bottom margin which is set as zero, does NOT have a unit of measure.  <strong>Zero does not need any unit of measure</strong>; zero is zero, whether it&#8217;s px, em, percent, whatever.</p>
<p>Maybe we want our headings in a different font than the rest of our page, and with this CSS</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h1<span style="color: #00AA00;">,</span> h2<span style="color: #00AA00;">,</span> h3<span style="color: #00AA00;">,</span> h4<span style="color: #00AA00;">,</span> h5 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">35px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>we can achieve that with minimal styling:  (See <a href='http://www.csstutorial.net/wp-content/uploads/2010/02/heading-styling03.html'>Arial Font Applied to Headings</a>.)</p>
<p>Or we can address individual tags:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h1 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FF0000</span><span style="color: #00AA00;">;</span> 
<span style="color: #00AA00;">&#125;</span>
h2 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFF99</span><span style="color: #00AA00;">;</span> 
<span style="color: #00AA00;">&#125;</span>
h3 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h4 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">italic</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h5 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#CCFFFF</span><span style="color: #00AA00;">;</span> 
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000099</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And all of the above creates <a href='http://www.csstutorial.net/wp-content/uploads/2010/02/heading-styling04.html'>this</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.csstutorial.net/2010/02/styling-headings-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Font Sizes</title>
		<link>http://www.csstutorial.net/2010/02/css-font-sizes/</link>
		<comments>http://www.csstutorial.net/2010/02/css-font-sizes/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 22:13:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Basics]]></category>
		<category><![CDATA[CSS Fonts]]></category>
		<category><![CDATA[Killer CSS Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.csstutorial.net/?p=253</guid>
		<description><![CDATA[In this tip, you will learn how to specify a font's size with CSS.

Being a practical nerd, I will not waste time talking about all the various methods for declaring font sizes with CSS ... instead I will concentrate on the two widely used ways and then briefly explain the differences.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.csstutorial.net/wp-content/uploads/2010/02/008.png" alt="" title="css-and-fonts" width="128" height="128" class="alignright size-full wp-image-244" style="float: right; margin: 10px;" /></p>
<p>In this tip, you will learn how to specify a font&#8217;s size with CSS.</p>
<p>Being a practical nerd, I will not waste time talking about all the various methods for declaring font sizes with CSS &#8230; instead I will concentrate on the two widely used ways and then briefly explain the differences. First, the two main methods:</p>
<ol>
<li>By pixel</li>
<li>By em</li>
</ol>
<p><strong>What is the difference between and EM and a pixel?</strong></p>
<p>Pixels are an absolute measure of a font&#8217;s size and an EM is a relative measure &#8211; that means the actual pixel size of the font (as they appear on screen) set with EM&#8217;s, can fluctuate. This makes using EM&#8217;s trickier. So the nerd answer is NOT to use EMs! </p>
<p>Let&#8217;s look at a quick EM example anyway:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;div style<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;font-size:1.2em&quot;</span><span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>So the above would cause the fonts to be about 20% larger than the baseline font size &#8211; thus 1.2em. I am not going to go into all the nerd details about EM&#8217;s because I think pixels are the way to go. </p>
<p>Let&#8217;s look at a quick pixel example:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;div style<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;font-size:12px&quot;</span><span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>Thanks,</p>
<p>Stefan Mischook</p>
]]></content:encoded>
			<wfw:commentRss>http://www.csstutorial.net/2010/02/css-font-sizes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS Font Color</title>
		<link>http://www.csstutorial.net/2010/02/css-font-color/</link>
		<comments>http://www.csstutorial.net/2010/02/css-font-color/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 21:50:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Fonts]]></category>
		<category><![CDATA[Killer CSS Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.csstutorial.net/?p=234</guid>
		<description><![CDATA[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 &#123; color: green; &#125; &#160; h4 &#123; color: #9000A1; &#125; &#160; p &#123; color: rgb&#40;0, 210, 87&#41;; &#125; Comments: You are able to specify the color in either: by [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.csstutorial.net/wp-content/uploads/2010/02/008.png" alt="" title="css-and-fonts" width="128" height="128" class="alignright size-full wp-image-244" style="float: right; margin: 10px;" /></p>
<p>In this ultra simple nerd-free CSS tip, I will show you how to change the color of your fonts with CSS.</p>
<p><span id="more-234"></span></p>
<p>Check out the samples:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h2 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">green</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
h4 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#9000A1</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span> 
&nbsp;
p <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">210</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">87</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Comments:</p>
<p>You are able to specify the color in either:</p>
<ul>
<li>by Named color</li>
<li>by Hexadecimal</li>
<li>by RGB</li>
</ul>
<p>Thanks,</p>
<p>Stefan Mischook</p>
]]></content:encoded>
			<wfw:commentRss>http://www.csstutorial.net/2010/02/css-font-color/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

