<?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>WordPress Themes Tips and Tricks &#187; absolute font size</title>
	<atom:link href="http://wpthemetips.com/tags/absolute-font-size/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpthemetips.com</link>
	<description>Helping you customize your WordPress based website !</description>
	<lastBuildDate>Thu, 05 Nov 2009 00:48:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Font sizes and Accessibility</title>
		<link>http://wpthemetips.com/font-sizes-and-accessibility/</link>
		<comments>http://wpthemetips.com/font-sizes-and-accessibility/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 17:19:09 +0000</pubDate>
		<dc:creator>Sadish</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[absolute font size]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[font-size]]></category>
		<category><![CDATA[relative font size]]></category>
		<category><![CDATA[w3c]]></category>

		<guid isPermaLink="false">http://wpthemetips.com/font-sizes-and-accessibility/</guid>
		<description><![CDATA[Lets take a closer look at the font-size property in CSS.
You might have seen this following piece of code in some theme&#8217;s style.css file.
 #content h2 { font-size:1.4em;} 
or this
 #content h2 { font-size:14px;} 
or this
 #content h2 { font-size:10pt;} 
What is the difference between all of these ? which one is better ?
In reality, [...]]]></description>
			<content:encoded><![CDATA[<p>Lets take a closer look at the font-size property in CSS.</p>
<p>You might have seen this following piece of code in some theme&#8217;s style.css file.<br />
<code> #content h2 { font-size:1.4em;} </code><br />
or this<br />
<code> #content h2 { font-size:14px;} </code><br />
or this<br />
<code> #content h2 { font-size:10pt;} </code></p>
<p>What is the difference between all of these ? which one is better ?</p>
<p>In reality, there is nothing like &#8216;one is better than the other&#8217;, but it depends more on the context where it is applied.</p>
<p>&#8216;1em&#8217; means the size of the character &#8216;M&#8217; for the given font when the browser displays the page at the normal text size.<br />
(Similarly 1ex = size of character &#8216;X&#8217;)</p>
<p>&#8216;1px&#8217; means 1 pixel size. if your monitor&#8217;s display is set to 800 by 600 resolution, that means it displays 800 pixels horizontally, and 600 pixels vertically.</p>
<p>&#8216;1pt&#8217; means 1 point size. This is a fixed size across all fonts = 1/72 of an inch. Fixed size fonts might be usable in some cases but not for all.</p>
<p><strong>Q : so what are Relative units for font ?</strong></p>
<p>A : something like &#8216;em&#8217;, &#8216;ex&#8217;, &#8216;px&#8217; etc</p>
<p><strong>Q : What are Fixed units for font ?</strong></p>
<p>A : something like &#8216;pt&#8217;, &#8216;<abbr title="Inch">in</abbr>&#8216;, &#8216;<abbr title="Centi Meter">cm</abbr>&#8216;, &#8216;<abbr title="Milli Meter">mm</abbr>&#8216; etc</p>
<p><strong>Q : What is the advantage of having a Relative Size set for a font ?</strong></p>
<p>With every modern browser, you have the capability to change the text size of a given web page you are viewing.<br />
If you are using Firefox, it is available in the toolbar (View > Text Size > Increase ) or in Internet Explorer, it is available in toolbar (View > Text Size > Larger )</p>
<p>If your website&#8217;s CSS defines the page element&#8217;s font-size in relative units (such as em, ex or px), then the browser will show the page in a bigger font size.<br />
else, the page always shows up with the same sized font, no matter what you change in the browser settings.</p>
<p>So, if you want to have a web page, that is readable by those people with minor visual impairment, you should use relative units for the font size.<br />
If you are a theme author, you make sure, your theme uses them as much as possible, so the sites using your theme are accessible to everyone.</p>
<p>Thats all folks, for now.</p>
<p>Further Reading:<br />
1. <a href="http://www.w3.org/QA/Tips/font-size" target="_blank">W3C&#8217;s Tips</a>.<br />
2. <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#length-units" target="_blank">CSS2 Syntax</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wpthemetips.com/font-sizes-and-accessibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
