<?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>Muthuswamy &#187; Optimize</title>
	<atom:link href="http://www.muthuswamy.in/tag/optimize/feed" rel="self" type="application/rss+xml" />
	<link>http://www.muthuswamy.in</link>
	<description>Web Developer</description>
	<lastBuildDate>Fri, 30 Apr 2010 05:55:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Shorthand &#8211; Simplified</title>
		<link>http://www.muthuswamy.in/66/css-shorthand-simplified</link>
		<comments>http://www.muthuswamy.in/66/css-shorthand-simplified#comments</comments>
		<pubDate>Mon, 19 Jan 2009 14:55:34 +0000</pubDate>
		<dc:creator>Muthuswamy K</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Optimize]]></category>
		<category><![CDATA[Shorthand]]></category>

		<guid isPermaLink="false">http://www.muthuswamy.in/?p=66</guid>
		<description><![CDATA[This is my first post and I want this to be useful to the readers, so I am writing about using shorthand codes in CSS. Before I get deep into CSS shorthands let me answer some of the frequent questions that may pop in your minds.
What is this CSS Shorthand?
Each CSS property has its own [...]]]></description>
			<content:encoded><![CDATA[<p>This is my first post and I want this to be useful to the readers, so I am writing about using shorthand codes in CSS. Before I get deep into CSS shorthands let me answer some of the frequent questions that may pop in your minds.</p>
<h3>What is this CSS Shorthand?</h3>
<p>Each CSS property has its own name and value. But the technique of grouping similar CSS properties by just setting values to the generalized name. I am sure that you will understand it better at the end of this tutorial.</p>
<h3>Why should I use CSS Shorthand?</h3>
<p>By using CSS shorthand technique, you actually have the following benefits:</p>
<ul>
<li> You reduce the CSS file size which proportionally reduces the load time.</li>
<li>CSS code will be clean and easy to manage.</li>
<li>It proves that you are an expert in CSS.</li>
</ul>
<h3>So why are you waiting? Teach me.</h3>
<p>Ya, Lets start. I am going to take you through each property which can be minimized. First I will show you the expanded version, then the procedure to minimize it.</p>
<p><strong>Background:</strong><br />
The list of properties available for background and their default values:</p>
<ul>
<li>background-color:<em> transparent</em></li>
<li>background-image: <em>none</em></li>
<li>background-repeat: <em>repeat</em></li>
<li>background-position: <em>scroll</em></li>
<li>background-attachment: <em>top left</em></li>
</ul>
<p>You don&#8217;t have to give each property separately, instead we use a single property &#8220;<em>background</em>&#8220;. Here is an example:<br />
<textarea class="css" cols="60" rows="5" name="code">div{background:#000 url(images/picture.jpg) no-repeat center 50% fixed;}</textarea><br />
Here the color, image URL, image repeat, position and attachment properties are described in just one line. Even if you leave out any of the properties, the default values are used. If you notice the code, you can see that I have used hexadecimal(hex) value for color. Usually hex values are 6 digits but here I have used a shortened version. You can shorten the digits if they appear in pairs. For example, #666666 can be written as #666, #44BBAA can be written as #4BA but you cannot shorten color values like #693B45 or #EE4423.</p>
<p>I wish to stop this tutorial right here and request you to get some practice in this topic. The next part of this tutorial will contain techniques to reduce other CSS properties. I will update here once the next part is released. Happy coding.</p>
<p>Update: <a title="CSS shorthand simplified part 2" href="http://www.muthuswamy.in/99/css-shorthand-simplified-part-2">CSS Shorthand &#8211; Simplified (Part 2)</a> published.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.muthuswamy.in/66/css-shorthand-simplified/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
