<?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"
	>
<channel>
	<title>Comments on: CSS shorthand tips</title>
	<atom:link href="http://www.robertnyman.com/2005/05/12/css-shorthand-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.robertnyman.com/2005/05/12/css-shorthand-tips/</link>
	<description>Web development and Internet trends</description>
	<pubDate>Tue, 06 Jan 2009 04:46:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: 25 extremely useful CSS Shorthand Tutorials : Online Marketing Blog - Website Development &#38; Website Marketing tips and Strategies</title>
		<link>http://www.robertnyman.com/2005/05/12/css-shorthand-tips/#comment-413993</link>
		<dc:creator>25 extremely useful CSS Shorthand Tutorials : Online Marketing Blog - Website Development &#38; Website Marketing tips and Strategies</dc:creator>
		<pubDate>Wed, 10 Sep 2008 05:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/05/11/css-shorthand-tips/#comment-413993</guid>
		<description>[...] 22. CSS shorthand tips [...]</description>
		<content:encoded><![CDATA[<p>[...] 22. <acronym title="Cascading Style Sheets">CSS</acronym> shorthand tips [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: All About Yesterday  &#187; Blog Archive   &#187; CSS Shorthand Properties</title>
		<link>http://www.robertnyman.com/2005/05/12/css-shorthand-tips/#comment-27602</link>
		<dc:creator>All About Yesterday  &#187; Blog Archive   &#187; CSS Shorthand Properties</dc:creator>
		<pubDate>Sat, 13 Jan 2007 06:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/05/11/css-shorthand-tips/#comment-27602</guid>
		<description>[...]  WordPress Codex: CSS Shorthand Efficient CSS with shorthand properties by Roger Johansson CSS shorthand tips by Robert Nyman Webcredible - CSS shorthand properties by Trenton Mo [...]</description>
		<content:encoded><![CDATA[<p>[...]  WordPress Codex: <acronym title="Cascading Style Sheets">CSS</acronym> Shorthand Efficient <acronym title="Cascading Style Sheets">CSS</acronym> with shorthand properties by Roger Johansson <acronym title="Cascading Style Sheets">CSS</acronym> shorthand tips by Robert Nyman Webcredible - <acronym title="Cascading Style Sheets">CSS</acronym> shorthand properties by Trenton Mo [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2005/05/12/css-shorthand-tips/#comment-299</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Thu, 12 May 2005 11:24:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/05/11/css-shorthand-tips/#comment-299</guid>
		<description>But, and as Tommy wrote, if you use positioning in (for instance) pixels for the background image, they have to be in the horizontal/vertical order, like this:

&lt;code&gt;background:#FFF url(images/funky-pic.png) no-repeat 14px 20px;&lt;/code&gt;

where 14px &lt;em&gt;will&lt;/em&gt; be the position from the left and 20 px  the position from the top.</description>
		<content:encoded><![CDATA[<p>But, and as Tommy wrote, if you use positioning in (for instance) pixels for the background image, they have to be in the horizontal/vertical order, like this:</p>
<p><code>background:#FFF <acronym title="Uniform Resource Locator">URL</acronym>(images/funky-pic.png) no-repeat 14px 20px;</code></p>
<p>where 14px <em>will</em> be the position from the left and 20 px  the position from the top.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faruk Ates</title>
		<link>http://www.robertnyman.com/2005/05/12/css-shorthand-tips/#comment-298</link>
		<dc:creator>Faruk Ates</dc:creator>
		<pubDate>Thu, 12 May 2005 10:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/05/11/css-shorthand-tips/#comment-298</guid>
		<description>In my experience &lt;em&gt;and&lt;/em&gt; given the W3C's own example, the order of &lt;code&gt;background:&lt;/code&gt; values is unimportant. Any order is allowed, given at least that each value is treated as one, even when values consist of multiple words (such as "top left", i.e. you can't do this: &lt;code&gt;background: top url(image.jpg) left;&lt;/code&gt;).</description>
		<content:encoded><![CDATA[<p>In my experience <em>and</em> given the <acronym title="World Wide Web Consortium">W3C</acronym>&#8217;s own example, the order of <code>background:</code> values is unimportant. Any order is allowed, given at least that each value is treated as one, even when values consist of multiple words (such as &#8220;top left&#8221;, i.e. you can&#8217;t do this: <code>background: top <acronym title="Uniform Resource Locator">URL</acronym>(image.jpg) left;</code>).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2005/05/12/css-shorthand-tips/#comment-297</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Thu, 12 May 2005 07:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/05/11/css-shorthand-tips/#comment-297</guid>
		<description>Tommy,

Thanks for the input.

I mentioned the border properties above, although I didn't give an example of them.
For those who want to see examples of border and list style properties, please go to Roger's article.

It's basically the same principle as shown in the examples in this post.
</description>
		<content:encoded><![CDATA[<p>Tommy,</p>
<p>Thanks for the input.</p>
<p>I mentioned the border properties above, although I didn&#8217;t give an example of them.<br />
For those who want to see examples of border and list style properties, please go to Roger&#8217;s article.</p>
<p>It&#8217;s basically the same principle as shown in the examples in this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tommy Olsson</title>
		<link>http://www.robertnyman.com/2005/05/12/css-shorthand-tips/#comment-296</link>
		<dc:creator>Tommy Olsson</dc:creator>
		<pubDate>Thu, 12 May 2005 06:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/05/11/css-shorthand-tips/#comment-296</guid>
		<description>Some mnemonic tips that I personally (brain like a sieve) find useful:

Margins, padding, borders etc. are specified clock-wise starting at the top. Remembering top-right-bottom-left will keep you out of TRouBLe.

An omitted value is taken from the opposite side, so &lt;code&gt;margin:2px 4px&lt;/code&gt; means that the omitted bottom is equal to top (2px) and the omitted left is equal to right (4px).

For font shorthand, the &lt;code&gt;font-size&lt;/code&gt; and &lt;code&gt;font-family&lt;/code&gt; are required, while the rest are optional.

And as you noted, background positions are specified with the horizontal position before the vertical position. When using keywords it doesn't matter, but if you're using percentages or lengths, it's vital. Also, you should &lt;em&gt;not&lt;/em&gt; mix keywords and numeric values.

There are also shorthand properties for borders and &lt;code&gt;list-style&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<p>Some mnemonic tips that I personally (brain like a sieve) find useful:</p>
<p>Margins, padding, borders etc. are specified clock-wise starting at the top. Remembering top-right-bottom-left will keep you out of TRouBLe.</p>
<p>An omitted value is taken from the opposite side, so <code>margin:2px 4px</code> means that the omitted bottom is equal to top (2px) and the omitted left is equal to right (4px).</p>
<p>For font shorthand, the <code>font-size</code> and <code>font-family</code> are required, while the rest are optional.</p>
<p>And as you noted, background positions are specified with the horizontal position before the vertical position. When using keywords it doesn&#8217;t matter, but if you&#8217;re using percentages or lengths, it&#8217;s vital. Also, you should <em>not</em> mix keywords and numeric values.</p>
<p>There are also shorthand properties for borders and <code>list-style</code>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
