<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: CSS Font-Size: em vs. px vs. pt vs. percent</title>
	<atom:link href="http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/feed/" rel="self" type="application/rss+xml" />
	<link>http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/</link>
	<description>Web Design &#38; SharePoint Branding</description>
	<lastBuildDate>Wed, 16 May 2012 16:07:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: CSS3的REM设置字体大小 &#124; 异次元花园 &#124; 涵盖前端后台的代码库</title>
		<link>http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/#comment-3308</link>
		<dc:creator>CSS3的REM设置字体大小 &#124; 异次元花园 &#124; 涵盖前端后台的代码库</dc:creator>
		<pubDate>Wed, 16 May 2012 03:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=18#comment-3308</guid>
		<description>[...] 在Web中使用什么单位来定义页面的字体大小，至今天为止都还在激烈的争论着，有人说PX做为单位好，有人说EMS优点多，还有人在说百分比方便，以至于出现了CSS Font-Size: em vs. px vs. pt vs. percent这样的PK大局。不幸的是，仍然有不同的利弊，使各种技术都不太理想，但又无法不去用。真是进也难，退也难呀。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 在Web中使用什么单位来定义页面的字体大小，至今天为止都还在激烈的争论着，有人说PX做为单位好，有人说EMS优点多，还有人在说百分比方便，以至于出现了CSS Font-Size: em vs. px vs. pt vs. percent这样的PK大局。不幸的是，仍然有不同的利弊，使各种技术都不太理想，但又无法不去用。真是进也难，退也难呀。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to CSS guide Basics for Wordpress</title>
		<link>http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/#comment-3300</link>
		<dc:creator>How to CSS guide Basics for Wordpress</dc:creator>
		<pubDate>Wed, 09 May 2012 15:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=18#comment-3300</guid>
		<description>[...] for font sizes there are a variety of ways to do it, read CSS Font-Size: em vs. px vs. pt vs. percent for a great [...]</description>
		<content:encoded><![CDATA[<p>[...] for font sizes there are a variety of ways to do it, read CSS Font-Size: em vs. px vs. pt vs. percent for a great [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/#comment-3297</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 08 May 2012 10:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=18#comment-3297</guid>
		<description>So what units would you use for your div and other elements? Can you use em for divs for example? It doesn&#039;t make any sense to me to use multiple units in a design. Also, aren&#039;t images in px units? I understand that % is not a unit, but how do you ensure the font scales correctly with images and icons?</description>
		<content:encoded><![CDATA[<p>So what units would you use for your div and other elements? Can you use em for divs for example? It doesn&#8217;t make any sense to me to use multiple units in a design. Also, aren&#8217;t images in px units? I understand that % is not a unit, but how do you ensure the font scales correctly with images and icons?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nidhin</title>
		<link>http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/#comment-3292</link>
		<dc:creator>Nidhin</dc:creator>
		<pubDate>Thu, 03 May 2012 05:48:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=18#comment-3292</guid>
		<description>Thanks for the post. Very useful information.</description>
		<content:encoded><![CDATA[<p>Thanks for the post. Very useful information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ilan</title>
		<link>http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/#comment-3291</link>
		<dc:creator>ilan</dc:creator>
		<pubDate>Thu, 03 May 2012 05:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=18#comment-3291</guid>
		<description>Thanks!
Good post, exactly what I was looking for</description>
		<content:encoded><![CDATA[<p>Thanks!<br />
Good post, exactly what I was looking for</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Melvin Thambi</title>
		<link>http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/#comment-3290</link>
		<dc:creator>Melvin Thambi</dc:creator>
		<pubDate>Thu, 03 May 2012 05:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=18#comment-3290</guid>
		<description>Thanks for differentiating the units, really helpful. Keep Sharing!</description>
		<content:encoded><![CDATA[<p>Thanks for differentiating the units, really helpful. Keep Sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/#comment-3284</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 28 Apr 2012 16:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=18#comment-3284</guid>
		<description>The reason 62.5% works is that converting px to em is very easy -- divide by 10 and change the unit.

If body If you have body{ font: 62.5% } then:

20px --&gt; 2.0em
12px --&gt; 1.2em etc.

You can often convert existing CSS using a text editor macro: find px; replace with em; back up 3 characaters; type a .

That works unless the px number already has a decimal, in which case the macro does this:

15.5px --&gt; 15..5em

To guard for that you can either write a more sophisticated macro or search your code for &quot;..&quot; afterwards.</description>
		<content:encoded><![CDATA[<p>The reason 62.5% works is that converting px to em is very easy &#8212; divide by 10 and change the unit.</p>
<p>If body If you have body{ font: 62.5% } then:</p>
<p>20px &#8211;&gt; 2.0em<br />
12px &#8211;&gt; 1.2em etc.</p>
<p>You can often convert existing CSS using a text editor macro: find px; replace with em; back up 3 characaters; type a .</p>
<p>That works unless the px number already has a decimal, in which case the macro does this:</p>
<p>15.5px &#8211;&gt; 15..5em</p>
<p>To guard for that you can either write a more sophisticated macro or search your code for &#8220;..&#8221; afterwards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/#comment-3276</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 19 Apr 2012 10:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=18#comment-3276</guid>
		<description>You can also get around the problem of people trying to make the text appear larger via their browser settings by applying a JavaScript hack - so that when they click the browser&#039;s enlarge button, the text stays the same size. :) OR, if you want to teach them a lesson, you can actually make it get smaller - lol, they won&#039;t be clicking that button again!</description>
		<content:encoded><![CDATA[<p>You can also get around the problem of people trying to make the text appear larger via their browser settings by applying a JavaScript hack &#8211; so that when they click the browser&#8217;s enlarge button, the text stays the same size. :) OR, if you want to teach them a lesson, you can actually make it get smaller &#8211; lol, they won&#8217;t be clicking that button again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/#comment-3275</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 19 Apr 2012 10:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=18#comment-3275</guid>
		<description>In my opinion, all text should be hardcoded to no more than 6px. That way, you can fit more content into your pages and, as people have to concentrate harder to read it, it really is a win-win situation.</description>
		<content:encoded><![CDATA[<p>In my opinion, all text should be hardcoded to no more than 6px. That way, you can fit more content into your pages and, as people have to concentrate harder to read it, it really is a win-win situation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dubai Web</title>
		<link>http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/#comment-3265</link>
		<dc:creator>Dubai Web</dc:creator>
		<pubDate>Sun, 15 Apr 2012 16:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=18#comment-3265</guid>
		<description>Even we been in the business for 8 years we still get muddled up with the percentages and the pixels would you believe..  Our favorite is the 12px with grey font colors .. simply cant beat it even our clients here in Dubai think that its the best to use, however in the UK people say that black is the best!!!</description>
		<content:encoded><![CDATA[<p>Even we been in the business for 8 years we still get muddled up with the percentages and the pixels would you believe..  Our favorite is the 12px with grey font colors .. simply cant beat it even our clients here in Dubai think that its the best to use, however in the UK people say that black is the best!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

