<?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 coding standards</title>
	<atom:link href="http://coffeepowered.co.uk/2010/01/css-coding-standards/feed/" rel="self" type="application/rss+xml" />
	<link>http://coffeepowered.co.uk/2010/01/css-coding-standards/</link>
	<description>The online ramblings of Paul Stanton</description>
	<lastBuildDate>Tue, 09 Aug 2011 18:21:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: A List of Coding Standard Websites</title>
		<link>http://coffeepowered.co.uk/2010/01/css-coding-standards/comment-page-1/#comment-29496</link>
		<dc:creator>A List of Coding Standard Websites</dc:creator>
		<pubDate>Sun, 15 Aug 2010 03:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://coffeepowered.co.uk/blog/?p=182#comment-29496</guid>
		<description>[...] CSS Coding Standards (via coffeepowered.co.uk) [...]</description>
		<content:encoded><![CDATA[<p>[...] CSS Coding Standards (via coffeepowered.co.uk) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stanton</title>
		<link>http://coffeepowered.co.uk/2010/01/css-coding-standards/comment-page-1/#comment-998</link>
		<dc:creator>Stanton</dc:creator>
		<pubDate>Wed, 06 Jan 2010 18:39:14 +0000</pubDate>
		<guid isPermaLink="false">http://coffeepowered.co.uk/blog/?p=182#comment-998</guid>
		<description>Awesome tip James! Thanks for sharing :)</description>
		<content:encoded><![CDATA[<p>Awesome tip James! Thanks for sharing <img src='http://coffeepowered.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James.S</title>
		<link>http://coffeepowered.co.uk/2010/01/css-coding-standards/comment-page-1/#comment-997</link>
		<dc:creator>James.S</dc:creator>
		<pubDate>Wed, 06 Jan 2010 18:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://coffeepowered.co.uk/blog/?p=182#comment-997</guid>
		<description>Good read, agree with much of what you say!

Spot on with maintainability trumping file size - if that&#039;s an issue I reckon you should run a minifier on release, leaving your dev files nice and maintainable.

Also, from the comments, I would replace:

border: 1px solid red;

with:

outline: red solid thin;

as outline doesn&#039;t take up space in the box model. Compensating for the temporary border on fixed width/height elements kept nagging me &#039;til I started using different background colors (waaay too much hassle) and finally settled on outline.</description>
		<content:encoded><![CDATA[<p>Good read, agree with much of what you say!</p>
<p>Spot on with maintainability trumping file size &#8211; if that&#8217;s an issue I reckon you should run a minifier on release, leaving your dev files nice and maintainable.</p>
<p>Also, from the comments, I would replace:</p>
<p>border: 1px solid red;</p>
<p>with:</p>
<p>outline: red solid thin;</p>
<p>as outline doesn&#8217;t take up space in the box model. Compensating for the temporary border on fixed width/height elements kept nagging me &#8217;til I started using different background colors (waaay too much hassle) and finally settled on outline.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://coffeepowered.co.uk/2010/01/css-coding-standards/comment-page-1/#comment-996</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Wed, 06 Jan 2010 16:49:45 +0000</pubDate>
		<guid isPermaLink="false">http://coffeepowered.co.uk/blog/?p=182#comment-996</guid>
		<description>I generally write my CSS with more concern for readability than for speed.  I indent and leave the curly braces on their own line.  I should probably start to organize my declarations.  Currently, I just sort them based on relationship (backgrounds together, height &amp; width next to each other), but that isn&#039;t hard and fast.

For commenting, I normally sort my CSS based on cascades and the order it appears on the page.  I use Comments before each area of the page (ie. /* Navigation */, /* Footer */, etc).</description>
		<content:encoded><![CDATA[<p>I generally write my CSS with more concern for readability than for speed.  I indent and leave the curly braces on their own line.  I should probably start to organize my declarations.  Currently, I just sort them based on relationship (backgrounds together, height &amp; width next to each other), but that isn&#8217;t hard and fast.</p>
<p>For commenting, I normally sort my CSS based on cascades and the order it appears on the page.  I use Comments before each area of the page (ie. /* Navigation */, /* Footer */, etc).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Ricketts</title>
		<link>http://coffeepowered.co.uk/2010/01/css-coding-standards/comment-page-1/#comment-995</link>
		<dc:creator>Phil Ricketts</dc:creator>
		<pubDate>Wed, 06 Jan 2010 16:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://coffeepowered.co.uk/blog/?p=182#comment-995</guid>
		<description>That is almost exactly the coding style I have ended up with. The only difference being that I tend to omit the last semi-colon - a rather anal habit, as I&#039;m always having to tidy up at the end.

When I get around to implementing some kind of live css parsing thing, so I can automate development &gt; production code form, I&#039;ll add a rule to remove the last semicolons.</description>
		<content:encoded><![CDATA[<p>That is almost exactly the coding style I have ended up with. The only difference being that I tend to omit the last semi-colon &#8211; a rather anal habit, as I&#8217;m always having to tidy up at the end.</p>
<p>When I get around to implementing some kind of live css parsing thing, so I can automate development &gt; production code form, I&#8217;ll add a rule to remove the last semicolons.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garrett Winder</title>
		<link>http://coffeepowered.co.uk/2010/01/css-coding-standards/comment-page-1/#comment-994</link>
		<dc:creator>Garrett Winder</dc:creator>
		<pubDate>Wed, 06 Jan 2010 15:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://coffeepowered.co.uk/blog/?p=182#comment-994</guid>
		<description>Great post!

In my opinion, closing brace on the last line just adds an extra step if you add something in later that comes after (alphabetically) everything that was already there.

Other than that, I use all the other techniques PLUS indenting my rules so they all line up as well.</description>
		<content:encoded><![CDATA[<p>Great post!</p>
<p>In my opinion, closing brace on the last line just adds an extra step if you add something in later that comes after (alphabetically) everything that was already there.</p>
<p>Other than that, I use all the other techniques PLUS indenting my rules so they all line up as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Fox</title>
		<link>http://coffeepowered.co.uk/2010/01/css-coding-standards/comment-page-1/#comment-993</link>
		<dc:creator>Andrew Fox</dc:creator>
		<pubDate>Wed, 06 Jan 2010 14:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://coffeepowered.co.uk/blog/?p=182#comment-993</guid>
		<description>I was going to just start going on about how tricky it is to share CSS files with Yaili — but she pretty much said it! As for the length of the files that are made with multi-line CSS, I don’t really think it matters if you&#039;re using something like CSSEdit (I rarely edit a CSS file ‘raw’ anymore without some kind of tool). That said, Yaili is better than me nowadays so generally I defer to her :/</description>
		<content:encoded><![CDATA[<p>I was going to just start going on about how tricky it is to share CSS files with Yaili — but she pretty much said it! As for the length of the files that are made with multi-line CSS, I don’t really think it matters if you&#8217;re using something like CSSEdit (I rarely edit a CSS file ‘raw’ anymore without some kind of tool). That said, Yaili is better than me nowadays so generally I defer to her :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stanton</title>
		<link>http://coffeepowered.co.uk/2010/01/css-coding-standards/comment-page-1/#comment-992</link>
		<dc:creator>Stanton</dc:creator>
		<pubDate>Wed, 06 Jan 2010 10:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://coffeepowered.co.uk/blog/?p=182#comment-992</guid>
		<description>I&#039;ll give it back, I promise!</description>
		<content:encoded><![CDATA[<p>I&#8217;ll give it back, I promise!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Designer Notebook &#187; Project 52, Or Why I Need A Helping Hand</title>
		<link>http://coffeepowered.co.uk/2010/01/css-coding-standards/comment-page-1/#comment-991</link>
		<dc:creator>Web Designer Notebook &#187; Project 52, Or Why I Need A Helping Hand</dc:creator>
		<pubDate>Wed, 06 Jan 2010 10:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://coffeepowered.co.uk/blog/?p=182#comment-991</guid>
		<description>[...] Paul Stanton gave us a look into CSS coding standards. [...]</description>
		<content:encoded><![CDATA[<p>[...] Paul Stanton gave us a look into CSS coding standards. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yaili</title>
		<link>http://coffeepowered.co.uk/2010/01/css-coding-standards/comment-page-1/#comment-989</link>
		<dc:creator>Yaili</dc:creator>
		<pubDate>Tue, 05 Jan 2010 22:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://coffeepowered.co.uk/blog/?p=182#comment-989</guid>
		<description>Sorry, Paul, you can&#039;t borrow it! ;)

This is the only formatter that does the trick for me, actually: http://www.lonniebest.com/FormatCSS

All the others are a bit less detailed. I&#039;d like to find one that did all the things this one does, but that would keep the comments in though.

When the selector is small, and has few properties, everything goes into one line. For example:

h1 { color:red; } h2 { color:blue; } h3 { color:green; }</description>
		<content:encoded><![CDATA[<p>Sorry, Paul, you can&#8217;t borrow it! <img src='http://coffeepowered.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>This is the only formatter that does the trick for me, actually: <a href="http://www.lonniebest.com/FormatCSS" rel="nofollow">http://www.lonniebest.com/FormatCSS</a></p>
<p>All the others are a bit less detailed. I&#8217;d like to find one that did all the things this one does, but that would keep the comments in though.</p>
<p>When the selector is small, and has few properties, everything goes into one line. For example:</p>
<p>h1 { color:red; } h2 { color:blue; } h3 { color:green; }</p>
]]></content:encoded>
	</item>
</channel>
</rss>

