<?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>Garrick Cheung &#187; shorthand</title>
	<atom:link href="http://www.garrickcheung.com/tag/shorthand/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.garrickcheung.com</link>
	<description>Sharing what I know and learn about CSS, MooTools, Javascript, PHP and etc.</description>
	<lastBuildDate>Fri, 30 Sep 2011 05:16:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>CSS Best Practice #2: Shorthand Properties</title>
		<link>http://www.garrickcheung.com/css/css-best-practice-2-shorthand-properties/</link>
		<comments>http://www.garrickcheung.com/css/css-best-practice-2-shorthand-properties/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 19:00:30 +0000</pubDate>
		<dc:creator>Garrick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[best practice]]></category>
		<category><![CDATA[short hand]]></category>
		<category><![CDATA[shorthand]]></category>

		<guid isPermaLink="false">http://www.garrickcheung.com/?p=210</guid>
		<description><![CDATA[Write your CSS rules with shorthand properties. It keeps things simple and clean. 1 2 3 4 5 6 7 8 9 10 .example &#123; /* long */ padding-top:1px; padding-right:2px; padding-bottom:3px; padding-left:4px; &#160; /* short */ padding:1px 2px 3px 4px; &#125; To help you with the shorthand, Dustin Diaz took the time to put together [...]]]></description>
			<content:encoded><![CDATA[<p>Write your CSS rules with shorthand properties. It keeps things simple and clean.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.example</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #808080; font-style: italic;">/* long */</span>
    <span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">padding-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">padding-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">/* short */</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #933;">3px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>To help you with the shorthand, Dustin Diaz took the time to put together a <a href="http://www.dustindiaz.com/css-shorthand/" target="_blank">CSS shorthand guide</a>. Way to go Dustin! Check the guide for in-depth descriptions, examples, and Dustins &#8220;quirky facts&#8221; (such as shorthand defaults).</p>
<p><a href="http://reference.sitepoint.com/css" target="_blank">SitePoint CSS Reference</a> is another source for shorthand properties, or any property in general, you should/could/would use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.garrickcheung.com/css/css-best-practice-2-shorthand-properties/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

