<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - chrisaiv</title>
<link>http://snipplr.com/users/chrisaiv/language/css</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 12 Oct 2008 20:17:16 GMT</pubDate>
<item>
<title>(CSS) How to use EM's when you're already comfortable with pixels</title>
<link>http://snipplr.com/view/6654/how-to-use-ems-when-youre-already-comfortable-with-pixels/</link>
<description><![CDATA[ <p>Here's why I use em:
1. Pixels are precise but they're not very flexible.  If you increase your browser's font-size, things may grow in wacky ways.
2. Percentages solve the issue of flexibility but sometimes the math gets tricky and I don't feel very comfortable purely working in that mode.  I believe in Rapid Development which in this context means fewer calculators.

By translating 1em to equal 10px, I am able to think in terms of Photoshop pixels but also ensure that increasing the font-size will allow the site to grow proportionally.  If you know how to multiply and divide by 10, you'll rarely need a calculator.

Note: The only time I do use px is for 1px borders.  0.1em doesn't work very well.</p> ]]></description>
<pubDate>Wed, 11 Jun 2008 12:02:24 GMT</pubDate>
<guid>http://snipplr.com/view/6654/how-to-use-ems-when-youre-already-comfortable-with-pixels/</guid>
</item>
</channel>
</rss>