<?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 : 3 Simple steps to write better Stylesheets</title>
	<atom:link href="http://www.thewebsqueeze.com/web-design-articles/css-3-simple-steps-to-write-better-stylesheets.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thewebsqueeze.com/web-design-articles/css-3-simple-steps-to-write-better-stylesheets.html</link>
	<description>Web Design Magazine</description>
	<lastBuildDate>Wed, 06 Jul 2011 03:12:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Michael Kozakewich</title>
		<link>http://www.thewebsqueeze.com/web-design-articles/css-3-simple-steps-to-write-better-stylesheets.html/comment-page-1/#comment-5854</link>
		<dc:creator>Michael Kozakewich</dc:creator>
		<pubDate>Thu, 06 Aug 2009 08:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=1969#comment-5854</guid>
		<description>I disagree with alphabetical sorting on the basis of horrid readability. What you&#039;re looking for is consistency, which can be achieved through a different, equally-consistent method:

#header {
    background:url(../images/header.png) no-repeat;

    padding: 1px 0;
    margin: 0 auto;

    width: 200px;
    height: 80px;
}

(In case the formatting doesn&#039;t take: What I describe is that things like padding/margin or width/height are grouped in a logical fashion. May include spacing between logical groups.)

This way, things that are often tweaked in relation to each-other are closer together, and things that are related to each-other are easier to find.

And yes, of course this is all in development.
And no, a few &lt;em&gt;bytes&lt;/em&gt; are not going to add a tremendous amount of server overhead (at least on smaller applications -- always keep your project in mind, because things will always be different depending on the project).

Happy coding!</description>
		<content:encoded><![CDATA[<p>I disagree with alphabetical sorting on the basis of horrid readability. What you&#8217;re looking for is consistency, which can be achieved through a different, equally-consistent method:</p>
<p>#header {<br />
    background:url(../images/header.png) no-repeat;</p>
<p>    padding: 1px 0;<br />
    margin: 0 auto;</p>
<p>    width: 200px;<br />
    height: 80px;<br />
}</p>
<p>(In case the formatting doesn&#8217;t take: What I describe is that things like padding/margin or width/height are grouped in a logical fashion. May include spacing between logical groups.)</p>
<p>This way, things that are often tweaked in relation to each-other are closer together, and things that are related to each-other are easier to find.</p>
<p>And yes, of course this is all in development.<br />
And no, a few <em>bytes</em> are not going to add a tremendous amount of server overhead (at least on smaller applications &#8212; always keep your project in mind, because things will always be different depending on the project).</p>
<p>Happy coding!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cedric Dugas</title>
		<link>http://www.thewebsqueeze.com/web-design-articles/css-3-simple-steps-to-write-better-stylesheets.html/comment-page-1/#comment-5569</link>
		<dc:creator>Cedric Dugas</dc:creator>
		<pubDate>Thu, 30 Jul 2009 02:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=1969#comment-5569</guid>
		<description>People not agreeing with tip#3 are not working with front-end teams, the readability of others code is really important and is not a waste of space.

Of course when you go live it is another matter.</description>
		<content:encoded><![CDATA[<p>People not agreeing with tip#3 are not working with front-end teams, the readability of others code is really important and is not a waste of space.</p>
<p>Of course when you go live it is another matter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MikeHopley</title>
		<link>http://www.thewebsqueeze.com/web-design-articles/css-3-simple-steps-to-write-better-stylesheets.html/comment-page-1/#comment-5539</link>
		<dc:creator>MikeHopley</dc:creator>
		<pubDate>Tue, 28 Jul 2009 16:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=1969#comment-5539</guid>
		<description>Obviously this article is about tips to keep your &lt;em&gt;development&lt;/em&gt; stylesheet organised -- hence &quot;tab nested elements&quot;.

A production stylesheet should be minified, but there&#039;s no need for this to affect your development files. You can even separate your styles across multiple stylesheets for convenience, and compile them into one big stylesheet for production.

Alphabetical ordering of properties does seem a bit OCD, but whatever floats your boat. ;)</description>
		<content:encoded><![CDATA[<p>Obviously this article is about tips to keep your <em>development</em> stylesheet organised &#8212; hence &#8220;tab nested elements&#8221;.</p>
<p>A production stylesheet should be minified, but there&#8217;s no need for this to affect your development files. You can even separate your styles across multiple stylesheets for convenience, and compile them into one big stylesheet for production.</p>
<p>Alphabetical ordering of properties does seem a bit OCD, but whatever floats your boat. <img src='http://www.thewebsqueeze.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.thewebsqueeze.com/web-design-articles/css-3-simple-steps-to-write-better-stylesheets.html/comment-page-1/#comment-5398</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 17 Jul 2009 12:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=1969#comment-5398</guid>
		<description>I only see one valid point, that being Tip #1. 

Tip #2 I agree alpha is overkill - Plus most editors have &quot;find&quot; .

Tip #3 This is just wasting space. Not enough lines on too many stylesheets for this to be useful.

Too much squeeze :)</description>
		<content:encoded><![CDATA[<p>I only see one valid point, that being Tip #1. </p>
<p>Tip #2 I agree alpha is overkill &#8211; Plus most editors have &#8220;find&#8221; .</p>
<p>Tip #3 This is just wasting space. Not enough lines on too many stylesheets for this to be useful.</p>
<p>Too much squeeze <img src='http://www.thewebsqueeze.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnONolan</title>
		<link>http://www.thewebsqueeze.com/web-design-articles/css-3-simple-steps-to-write-better-stylesheets.html/comment-page-1/#comment-5383</link>
		<dc:creator>JohnONolan</dc:creator>
		<pubDate>Thu, 16 Jul 2009 08:46:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=1969#comment-5383</guid>
		<description>NetTuts wrote a very similar article a while back
http://net.tutsplus.com/tutorials/html-css-techniques/5-tips-to-writing-better-css/

And I agree with what almost everyone in their comments (including myself) said: organising CSS attributes in alphabetical order is just overkill.. there are only 6 tiny lines of code to read per element, how long does it really take to scan to the list? Personally it takes just as long either way for me.

What I do, is use a vaguely consistant structure that makes sense to me: width, height, and float are always the first things to be defined, and border + background are always the last. These are the parts of code that I edit most frequently, so I&#039;ll always know where to find them, everything else just sits in between.</description>
		<content:encoded><![CDATA[<p>NetTuts wrote a very similar article a while back<br />
<a href="http://net.tutsplus.com/tutorials/html-css-techniques/5-tips-to-writing-better-css/" rel="nofollow">http://net.tutsplus.com/tutorials/html-css-techniques/5-tips-to-writing-better-css/</a></p>
<p>And I agree with what almost everyone in their comments (including myself) said: organising CSS attributes in alphabetical order is just overkill.. there are only 6 tiny lines of code to read per element, how long does it really take to scan to the list? Personally it takes just as long either way for me.</p>
<p>What I do, is use a vaguely consistant structure that makes sense to me: width, height, and float are always the first things to be defined, and border + background are always the last. These are the parts of code that I edit most frequently, so I&#8217;ll always know where to find them, everything else just sits in between.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley Broadley</title>
		<link>http://www.thewebsqueeze.com/web-design-articles/css-3-simple-steps-to-write-better-stylesheets.html/comment-page-1/#comment-5367</link>
		<dc:creator>Ashley Broadley</dc:creator>
		<pubDate>Tue, 14 Jul 2009 14:51:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=1969#comment-5367</guid>
		<description>Hmmm, I&#039;m not too keen on this article. Admittedly the above are good practices for readability, but readability ONLY! Once you step out of your testing environment, that&#039;s where readability ends. Unless you run a site where you want people to be able to read and understand (without having to manually add whitespace) your code, or your site is hosted in a high end platform with lots of bandwidth, then sure, go for it.

If anyone was to do this in production, they would cause an unwanted amount of server overhead when trying to serve files, increase load times and bandwidth usage. For production you should minify you css. Remove all comments and whitespace. CSS functions exactly the same without whitespace. I recommend using a tool such as http://javascriptcompressor.com to compress JS and CSS.

Why would you want your code readable to the outside world anyway? It&#039;s not like comments help the browser understand what&#039;s going on.

Either pay no attention to this article, or get the author to add &quot;FOR DEVELOPMENT PURPOSES ONLY&quot; on the first line.

Kind regards
Ashley</description>
		<content:encoded><![CDATA[<p>Hmmm, I&#8217;m not too keen on this article. Admittedly the above are good practices for readability, but readability ONLY! Once you step out of your testing environment, that&#8217;s where readability ends. Unless you run a site where you want people to be able to read and understand (without having to manually add whitespace) your code, or your site is hosted in a high end platform with lots of bandwidth, then sure, go for it.</p>
<p>If anyone was to do this in production, they would cause an unwanted amount of server overhead when trying to serve files, increase load times and bandwidth usage. For production you should minify you css. Remove all comments and whitespace. CSS functions exactly the same without whitespace. I recommend using a tool such as <a href="http://javascriptcompressor.com" rel="nofollow">http://javascriptcompressor.com</a> to compress JS and CSS.</p>
<p>Why would you want your code readable to the outside world anyway? It&#8217;s not like comments help the browser understand what&#8217;s going on.</p>
<p>Either pay no attention to this article, or get the author to add &#8220;FOR DEVELOPMENT PURPOSES ONLY&#8221; on the first line.</p>
<p>Kind regards<br />
Ashley</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dav7</title>
		<link>http://www.thewebsqueeze.com/web-design-articles/css-3-simple-steps-to-write-better-stylesheets.html/comment-page-1/#comment-5366</link>
		<dc:creator>Dav7</dc:creator>
		<pubDate>Tue, 14 Jul 2009 14:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=1969#comment-5366</guid>
		<description>Tip 3: Tab nested elements

but doesn&#039;t this makes the template loading increase?</description>
		<content:encoded><![CDATA[<p>Tip 3: Tab nested elements</p>
<p>but doesn&#8217;t this makes the template loading increase?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

