<?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: The definitive guide to formatting CSS</title>
	<atom:link href="http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/</link>
	<description>The work &#38; play of Radu Chelariu</description>
	<lastBuildDate>Mon, 13 Jun 2011 06:52:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: onioneye</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-1483</link>
		<dc:creator>onioneye</dc:creator>
		<pubDate>Sat, 14 May 2011 10:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-1483</guid>
		<description>Excellent stuff! I prefer writing single-line and single-file style sheets, and divide my CSS into sections within the files. I also like to leave a fair amount of comments next to my declarations (not for the self-explanatory stuff).

Here&#039;s one my files: http://onioneye.com/themes/echo/wp-content/themes/echo/style.css</description>
		<content:encoded><![CDATA[<p>Excellent stuff! I prefer writing single-line and single-file style sheets, and divide my CSS into sections within the files. I also like to leave a fair amount of comments next to my declarations (not for the self-explanatory stuff).</p>
<p>Here&#8217;s one my files: <a href="http://onioneye.com/themes/echo/wp-content/themes/echo/style.css" rel="nofollow">http://onioneye.com/themes/echo/wp-content/themes/echo/style.css</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duje</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-1470</link>
		<dc:creator>Duje</dc:creator>
		<pubDate>Tue, 10 May 2011 13:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-1470</guid>
		<description>this is also my formatting of choice... especially the second one, cause i always choose more separated structure... also i like to put a tab at the beggining of each line within classes....</description>
		<content:encoded><![CDATA[<p>this is also my formatting of choice&#8230; especially the second one, cause i always choose more separated structure&#8230; also i like to put a tab at the beggining of each line within classes&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radu Chelariu</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-522</link>
		<dc:creator>Radu Chelariu</dc:creator>
		<pubDate>Thu, 01 Jul 2010 18:18:58 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-522</guid>
		<description>&quot;Your programming is showing&quot; ;) (paraphrasing James White)
If your system works well for you (and your team, if that&#039;s the case) then you shouldn&#039;t give it up, no matter what a blog post tells you. It&#039;s always good to look around and see alternatives, but, at the end of the day, if your own system is the one that&#039;s more efficient for you, then that&#039;s what you should stick with.</description>
		<content:encoded><![CDATA[<p>&#8220;Your programming is showing&#8221; <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  (paraphrasing James White)<br />
If your system works well for you (and your team, if that&#8217;s the case) then you shouldn&#8217;t give it up, no matter what a blog post tells you. It&#8217;s always good to look around and see alternatives, but, at the end of the day, if your own system is the one that&#8217;s more efficient for you, then that&#8217;s what you should stick with.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny Singh</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-519</link>
		<dc:creator>Sunny Singh</dc:creator>
		<pubDate>Thu, 01 Jul 2010 16:05:37 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-519</guid>
		<description>I like using single-line CSS, but don&#039;t indent at all. There&#039;s a space between every word (and curly bracket/selector) so it&#039;s not like the programmer friendly approach.

As much as the alphabetizing makes sense, it&#039;s not ideal. It makes more sense to have a certain order to the properties, like first is position, than margin/padding, than text styling (font, text alignment, etc.), background, and lastly is borders (mostly due to CSS3 taking up a lot of space at the moment.

Great article, here&#039;s one of my CSS files http://cdn.myunv.com/css/uecore.css</description>
		<content:encoded><![CDATA[<p>I like using single-line CSS, but don&#8217;t indent at all. There&#8217;s a space between every word (and curly bracket/selector) so it&#8217;s not like the programmer friendly approach.</p>
<p>As much as the alphabetizing makes sense, it&#8217;s not ideal. It makes more sense to have a certain order to the properties, like first is position, than margin/padding, than text styling (font, text alignment, etc.), background, and lastly is borders (mostly due to CSS3 taking up a lot of space at the moment.</p>
<p>Great article, here&#8217;s one of my CSS files <a href="http://cdn.myunv.com/css/uecore.css" rel="nofollow">http://cdn.myunv.com/css/uecore.css</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karen</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-276</link>
		<dc:creator>Karen</dc:creator>
		<pubDate>Fri, 28 May 2010 20:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-276</guid>
		<description>I agree for the most part, except I like having the closing curly brace on a line by itself, that way it&#039;s easier to add/delete properties without worrying about deleting/overshooting the curly brace when you happen to want to delete the last property of a class, or add a new property to the end.</description>
		<content:encoded><![CDATA[<p>I agree for the most part, except I like having the closing curly brace on a line by itself, that way it&#8217;s easier to add/delete properties without worrying about deleting/overshooting the curly brace when you happen to want to delete the last property of a class, or add a new property to the end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomáš Kapler</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-275</link>
		<dc:creator>Tomáš Kapler</dc:creator>
		<pubDate>Fri, 14 May 2010 09:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-275</guid>
		<description>My opinion is easy - you can use e.g. PSPAD (my favourite code editor) and use &quot;format CSS&quot; function and you can inline format or indent format, so you can write with full indent and when you save, you just do &quot;format as one line no ident&quot;, so no spaces extra.
P.S.: but imho it does not much care - if you have 1024 spaces more, it means you go got 1 kB more, so very tiny bit comparing event the simplest page graphics</description>
		<content:encoded><![CDATA[<p>My opinion is easy &#8211; you can use e.g. PSPAD (my favourite code editor) and use &#8220;format CSS&#8221; function and you can inline format or indent format, so you can write with full indent and when you save, you just do &#8220;format as one line no ident&#8221;, so no spaces extra.<br />
P.S.: but imho it does not much care &#8211; if you have 1024 spaces more, it means you go got 1 kB more, so very tiny bit comparing event the simplest page graphics</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Corgan</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-274</link>
		<dc:creator>Scott Corgan</dc:creator>
		<pubDate>Mon, 10 May 2010 16:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-274</guid>
		<description>I can&#039;t tell you how many times formatting my CSS has saved my life. I can almost scan and find any element in seconds, event without using CTRL+F!!</description>
		<content:encoded><![CDATA[<p>I can&#8217;t tell you how many times formatting my CSS has saved my life. I can almost scan and find any element in seconds, event without using CTRL+F!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaina</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-273</link>
		<dc:creator>Jaina</dc:creator>
		<pubDate>Tue, 27 Apr 2010 14:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-273</guid>
		<description>Always find it interesting to see how other people code. Personally I like the multi-line and indent approach, purely because I find it much easier to read. Think my habit to indent has come from a programming background.

Great article!</description>
		<content:encoded><![CDATA[<p>Always find it interesting to see how other people code. Personally I like the multi-line and indent approach, purely because I find it much easier to read. Think my habit to indent has come from a programming background.</p>
<p>Great article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radu Chelariu</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-272</link>
		<dc:creator>Radu Chelariu</dc:creator>
		<pubDate>Thu, 22 Apr 2010 17:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-272</guid>
		<description>@Steffen: Yep, you&#039;re right, I did miss a mandatory semicolon. Thanks for pointing that out! It&#039;s fixed now :) I avoided the whole semicolon or not discussion because it&#039;s a mandatory part of CSS grammar, so whether or not one adds a semicolon to the end of a block is really up to the writer and doesn&#039;t help with maintainability.</description>
		<content:encoded><![CDATA[<p>@Steffen: Yep, you&#8217;re right, I did miss a mandatory semicolon. Thanks for pointing that out! It&#8217;s fixed now <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I avoided the whole semicolon or not discussion because it&#8217;s a mandatory part of CSS grammar, so whether or not one adds a semicolon to the end of a block is really up to the writer and doesn&#8217;t help with maintainability.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steffen</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-271</link>
		<dc:creator>Steffen</dc:creator>
		<pubDate>Thu, 22 Apr 2010 17:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-271</guid>
		<description>Radu, I think you missed out the discussion about the terminating semicolon in a declaration block.
While the spec defines a grammar - and dictates to leave it out - common practice is to put it in here and there at will. However, the validator doesn&#039;t complain about it.
Your examples are showing both ways - and an additional version in the last #right declaration that leaves out a mandatory semicolon...
... but hey, it&#039;s your blog, you&#039;re allowed to do that ;-)</description>
		<content:encoded><![CDATA[<p>Radu, I think you missed out the discussion about the terminating semicolon in a declaration block.<br />
While the spec defines a grammar &#8211; and dictates to leave it out &#8211; common practice is to put it in here and there at will. However, the validator doesn&#8217;t complain about it.<br />
Your examples are showing both ways &#8211; and an additional version in the last #right declaration that leaves out a mandatory semicolon&#8230;<br />
&#8230; but hey, it&#8217;s your blog, you&#8217;re allowed to do that <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amber Weinberg</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-270</link>
		<dc:creator>Amber Weinberg</dc:creator>
		<pubDate>Thu, 22 Apr 2010 15:35:10 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-270</guid>
		<description>I find one line CSS is personally easier for me to read. It also helps that I&#039;m working on a 22&quot; monitor. I also don&#039;t like indenting my code because my eyes tend to skip over attributes when searching for them, since I look all the way to the left. Organizing CSS is definitely more of a personal preference kind of deal. There&#039;s really no right or wrong way, as long as you have some kind of organization in place.</description>
		<content:encoded><![CDATA[<p>I find one line CSS is personally easier for me to read. It also helps that I&#8217;m working on a 22&#8243; monitor. I also don&#8217;t like indenting my code because my eyes tend to skip over attributes when searching for them, since I look all the way to the left. Organizing CSS is definitely more of a personal preference kind of deal. There&#8217;s really no right or wrong way, as long as you have some kind of organization in place.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-269</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Thu, 22 Apr 2010 13:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-269</guid>
		<description>Well your last name is what really gave it away :)</description>
		<content:encoded><![CDATA[<p>Well your last name is what really gave it away <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radu Chelariu</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-268</link>
		<dc:creator>Radu Chelariu</dc:creator>
		<pubDate>Thu, 22 Apr 2010 13:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-268</guid>
		<description>@jon: thanks for the comment. While Radu is, natively, a slavic name, yes, you&#039;re right, I am Romanian. :)</description>
		<content:encoded><![CDATA[<p>@jon: thanks for the comment. While Radu is, natively, a slavic name, yes, you&#8217;re right, I am Romanian. <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-267</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Thu, 22 Apr 2010 13:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-267</guid>
		<description>Very interesting.  Some of these methods I&#039;ve never even thought of.  I think you usually stick with the method you used when you first start building websites using CSS, at least thats how it is for me.

P.s.  With a name like Radu you must be Romanian!  NOROC!</description>
		<content:encoded><![CDATA[<p>Very interesting.  Some of these methods I&#8217;ve never even thought of.  I think you usually stick with the method you used when you first start building websites using CSS, at least thats how it is for me.</p>
<p>P.s.  With a name like Radu you must be Romanian!  NOROC!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zoran Jambor</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-266</link>
		<dc:creator>Zoran Jambor</dc:creator>
		<pubDate>Thu, 22 Apr 2010 08:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-266</guid>
		<description>@Radu Chelariu:
Yeah, I knew that I was the only one. :)
Guilty as charged, I am a Firebug freak. It&#039;s an amazing tool, saves me a tons of time with its live preview of css changes.
I&#039;ve just been going trough some of my big css files and it may seem cumbersome on first sight, but I&#039;ts actually quite readable.
I clearly separate sections  (header, nav, body, sidebar footer etc.) with comments, and I don&#039;t alphabetize, but prioritize rules. I always put positioning rules first (margin, padding, width, height, floats, etc.), and styling (fonts, colors, backgrounds, etc.) rules after that. Well, this does sound crammed. :) But this is how I know exactly where to look for what. Without scrolling. Not that I have anything  against scrolling tough. :)
I guess I fall into your programmer-friendly category. I&#039;m just a little bit more friendly than the one in your example. :)
Oh, and just to make it clear, this is just my css preference. In php and JavaScript/jQuery I do indent and put all brackets on new lines.</description>
		<content:encoded><![CDATA[<p>@Radu Chelariu:<br />
Yeah, I knew that I was the only one. <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Guilty as charged, I am a Firebug freak. It&#8217;s an amazing tool, saves me a tons of time with its live preview of css changes.<br />
I&#8217;ve just been going trough some of my big css files and it may seem cumbersome on first sight, but I&#8217;ts actually quite readable.<br />
I clearly separate sections  (header, nav, body, sidebar footer etc.) with comments, and I don&#8217;t alphabetize, but prioritize rules. I always put positioning rules first (margin, padding, width, height, floats, etc.), and styling (fonts, colors, backgrounds, etc.) rules after that. Well, this does sound crammed. <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But this is how I know exactly where to look for what. Without scrolling. Not that I have anything  against scrolling tough. <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I guess I fall into your programmer-friendly category. I&#8217;m just a little bit more friendly than the one in your example. <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Oh, and just to make it clear, this is just my css preference. In php and JavaScript/jQuery I do indent and put all brackets on new lines.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radu Chelariu</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-265</link>
		<dc:creator>Radu Chelariu</dc:creator>
		<pubDate>Thu, 22 Apr 2010 05:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-265</guid>
		<description>@Jason: I&#039;m glad you found the article useful. Yeah, alphabetizing is definitely something to try. I think it can really clear things up more than any other practice. But that&#039;s just me.</description>
		<content:encoded><![CDATA[<p>@Jason: I&#8217;m glad you found the article useful. Yeah, alphabetizing is definitely something to try. I think it can really clear things up more than any other practice. But that&#8217;s just me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-264</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 22 Apr 2010 05:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-264</guid>
		<description>I have found myself using the multiple line aproach with having the ending bracket having it&#039;s own line. I like the idea you had with alphabitizing. I am going to have to give that a try sometime, thanks!</description>
		<content:encoded><![CDATA[<p>I have found myself using the multiple line aproach with having the ending bracket having it&#8217;s own line. I like the idea you had with alphabitizing. I am going to have to give that a try sometime, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radu Chelariu</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-263</link>
		<dc:creator>Radu Chelariu</dc:creator>
		<pubDate>Thu, 22 Apr 2010 04:57:43 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-263</guid>
		<description>@Bill Chambers: I have the same approach as you about it and it&#039;s been a whole lot easier and hassle free since I decided to stop being such a snob about the way I format my styles. And somehow, it feels like I broadened my understanding of CSS since I&#039;ve done so. Perhaps it&#039;s just psychological :)</description>
		<content:encoded><![CDATA[<p>@Bill Chambers: I have the same approach as you about it and it&#8217;s been a whole lot easier and hassle free since I decided to stop being such a snob about the way I format my styles. And somehow, it feels like I broadened my understanding of CSS since I&#8217;ve done so. Perhaps it&#8217;s just psychological <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radu Chelariu</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-262</link>
		<dc:creator>Radu Chelariu</dc:creator>
		<pubDate>Thu, 22 Apr 2010 04:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-262</guid>
		<description>@Shikeb Ali: Oh yeah, wordpress websites and single-line CSS are not a good match. So, so true!</description>
		<content:encoded><![CDATA[<p>@Shikeb Ali: Oh yeah, wordpress websites and single-line CSS are not a good match. So, so true!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radu Chelariu</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-261</link>
		<dc:creator>Radu Chelariu</dc:creator>
		<pubDate>Thu, 22 Apr 2010 04:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-261</guid>
		<description>@Jean Minnaar: theme CSS would be an addendum to the multiple file format. And while it is a very good practice, it only applies to small percentage of projects. It&#039;s good to know, though, so thanks for chiming in!</description>
		<content:encoded><![CDATA[<p>@Jean Minnaar: theme CSS would be an addendum to the multiple file format. And while it is a very good practice, it only applies to small percentage of projects. It&#8217;s good to know, though, so thanks for chiming in!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radu Chelariu</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-260</link>
		<dc:creator>Radu Chelariu</dc:creator>
		<pubDate>Thu, 22 Apr 2010 04:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-260</guid>
		<description>@earthdesigner: Tatiii!!!! Oh, I still have my weirdo tech questions, but as you thought a long time ago, &quot;Hit your head on the wall until you figure it out&quot;. :) Actually, to extend your metaphor, non-indentation feels like a tab (faster to read, but not very meaningful if you don&#039;t know the song already) while indentation feels like sheet music (a bit more complicated but your timing is right there in front of you)</description>
		<content:encoded><![CDATA[<p>@earthdesigner: Tatiii!!!! Oh, I still have my weirdo tech questions, but as you thought a long time ago, &#8220;Hit your head on the wall until you figure it out&#8221;. <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Actually, to extend your metaphor, non-indentation feels like a tab (faster to read, but not very meaningful if you don&#8217;t know the song already) while indentation feels like sheet music (a bit more complicated but your timing is right there in front of you)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Chambers</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-259</link>
		<dc:creator>Bill Chambers</dc:creator>
		<pubDate>Thu, 22 Apr 2010 00:39:21 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-259</guid>
		<description>Hey Radu! Nice post! For me, it really depends on the job. I like to space things out a bit to make it really easy to read. I also group everything. It also depends on the project, size, if I am working with others etc.  Anyway, rockin post!</description>
		<content:encoded><![CDATA[<p>Hey Radu! Nice post! For me, it really depends on the job. I like to space things out a bit to make it really easy to read. I also group everything. It also depends on the project, size, if I am working with others etc.  Anyway, rockin post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shikeb Ali</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-258</link>
		<dc:creator>Shikeb Ali</dc:creator>
		<pubDate>Thu, 22 Apr 2010 00:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-258</guid>
		<description>Nice article. I think most web designers prefer code in multiline css technique as its really helpful when you are looking for something to change and it do look neat.

Single line code is good for small websites but if you are coding a wordpress theme, things will go little  messy.</description>
		<content:encoded><![CDATA[<p>Nice article. I think most web designers prefer code in multiline css technique as its really helpful when you are looking for something to change and it do look neat.</p>
<p>Single line code is good for small websites but if you are coding a wordpress theme, things will go little  messy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean Minnaar</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-257</link>
		<dc:creator>Jean Minnaar</dc:creator>
		<pubDate>Wed, 21 Apr 2010 22:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-257</guid>
		<description>These are all great tips for designers, especially new ones, but I would also suggest to add something about base CSS vs theme CSS.  Organizing CSS in this manner can allow one to create templates based on one design.  The overall flow would be the same from the base, but the theme (colors, images) can be easily changed creating a new look with minimal effort.  Really love the blog though.</description>
		<content:encoded><![CDATA[<p>These are all great tips for designers, especially new ones, but I would also suggest to add something about base CSS vs theme CSS.  Organizing CSS in this manner can allow one to create templates based on one design.  The overall flow would be the same from the base, but the theme (colors, images) can be easily changed creating a new look with minimal effort.  Really love the blog though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: earthdesigner</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-256</link>
		<dc:creator>earthdesigner</dc:creator>
		<pubDate>Wed, 21 Apr 2010 20:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-256</guid>
		<description>Being my 1st comment here I want to congratulate you for your blog, thank you for the great content and the heart &amp; soul you&#039;re putting in, and nevertheless that I miss your challenging tech questions :)

Back on subject, which remains a &#039;hot&#039; topic, I see the indenting good only in html and not necessary in css. If you cleverly indent and tag  in html, the contextual selectors do the same in css. When I see &quot;#header h1&quot; in css I know there&#039;s a  with a  inside it.
To conclude my point of view let&#039;s assume an exaggerated parallel:  that we can write a musical score in the same way we write css. Now, how will you play by an &quot;over-achiever approach&quot; score?
Great posts! Keep&#039;em coming!</description>
		<content:encoded><![CDATA[<p>Being my 1st comment here I want to congratulate you for your blog, thank you for the great content and the heart &amp; soul you&#8217;re putting in, and nevertheless that I miss your challenging tech questions <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Back on subject, which remains a &#8216;hot&#8217; topic, I see the indenting good only in html and not necessary in css. If you cleverly indent and tag  in html, the contextual selectors do the same in css. When I see &#8220;#header h1&#8243; in css I know there&#8217;s a  with a  inside it.<br />
To conclude my point of view let&#8217;s assume an exaggerated parallel:  that we can write a musical score in the same way we write css. Now, how will you play by an &#8220;over-achiever approach&#8221; score?<br />
Great posts! Keep&#8217;em coming!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radu Chelariu</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-255</link>
		<dc:creator>Radu Chelariu</dc:creator>
		<pubDate>Wed, 21 Apr 2010 19:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-255</guid>
		<description>That..is a bucket load of comments. But everybody deserves an answer, so here goes:

@DesignInformer: exactly; it&#039;s about what works for you and your team and the project at hand.

@Anthony Hortin: you&#039;re a god amongst programmers then, and we salute you wholeheartedly.

@MCB Web Design: I agree, and as I&#039;ve pointed out at the beginning of the post, if you really need to, you can use a minifier.

@Takingweb: thanks for the fav! I try not to think of them as guidelines as much as construction blocks. You build the structure your project needs using the blocks that serve your purpose best. Yeah, I like metaphores, ok?

@Igniatovic Nikola: I ran into the same problem time and time again. Sometimes I&#039;d give in to their single-line-ess, but other times I would push for multi-line. In time I&#039;ve learned that it&#039;s not what I fancy that matters, but what&#039;s best for the project. And what&#039;s best for the project is best for us, right? :P

@sajjadul farooque robin: YSlow is kind of a weird tool, if you don&#039;t configure it a bit. You can set what kind of project you&#039;re working on, and depending on that, it will adjust it&#039;s limits. For example, on a blog, multiple CSS files pass ok.

@Alfredo Matos: Good point. That&#039;s a bonus for keeping the bracket on the next line. Thanks!

@Julian Nicholls: I&#039;ve seen this approach a few times with other designers but have always found the combination a bit distracting and hard to skim. It&#039;s a good tip, though, for anyone that has no trouble reading this system.

@Niels Matthijs: as far as I know, not all code editors have an option to color code subjectively, so your tip, although valid, is only applicable to some editors. :) I can see where you&#039;re coming from. There seems to be a kind of psychological delight to scrolling through hundreds of lines of code. Hey, I&#039;m guilty too! Some people don&#039;t find multiple files cumbersome. In fact, if you keep all of them opened (and most of the time there are about 3 files) you can easily switch with a keyboard shortcut. Thanks for the tips on the comments usability, I&#039;ll take them into consideration! The post button problem was probably at your end, since it&#039;s peachy fine for everyone else. Perhaps the page didn&#039;t load fully. Browsers, right? :)

@Henrik Kjelsberg: I agree, most of the time, something like the over-achiever approach doesn&#039;t pose any problems (plus, it can look pretty impressive right?) but when you&#039;re dealing with a large project that has a short deadline, every second spent formatting code just for the sake of it looking pretty is time wasted.

@Thomas Craig Consulting: it&#039;s an interesting idea but I&#039;m not sure what the upper limit for CSS overwrites is until browsers start to become a bit sluggish on page load. I was talking to a programmer friend just today about this. It&#039;s unclear how browsers perform when you&#039;re overwriting say 200 selectors or maybe overwriting 10 selectors 20 times, for example. Of course a lot of factors come in, but I guess it&#039;s something to think about.

@Duncan Beattie: good approach! I bet most of the time this saves a lot of time on updates. But what do you do when the client demands structural changes? As far as I know, a un-minifier has yet to be invented ;)

@Zach Schneider: of course comments are always a good idea, no matter what language you&#039;re writing in. I don&#039;t care if you write in C# or HTML or friggin COBOL (that&#039;s a joke, guys), comments are a must. But comments have nothing to do with formatting your styles. Comments, to me, have to follow the CSS format of choice, not influence it.

@Thom Lohman: :) javascript without identation is, for me as well, like looking for a needle in a haystack. A big, messy, strange haystack. Eliminating the linebreaks is a good idea if you keep the ending bracket on the next line; that way you save space and don&#039;t have to worry about deleting it when getting rid of the last attribute and property, like Alfredo Matos mentioned below.

@Zoran Jambor: hey, everybody! we&#039;ve go one of &quot;those guys&quot; here :) just kidding. But, seriously, how do you read through it? Come clean, are you a Firebug freak?

@Marco Pivetta: as I said in the post, &quot;the downtime caused by large CSS files is, mostly, insignificant.&quot; so, there wasn&#039;t really an argument there, it was a consideration point for all those that are overly concerned with file sizes. So, yeah, I agree it&#039;s all about editing faster, easier and better.

@Aaron Blakeley: I think most of us like to read through our stylesheets like a story, because, as designer, we are, in a way, telling a story. It&#039;s a beautiful metaphor and I equally congratulate you for it and despise you for thinking of it before I did. Sarcasm +1 for me :)

@Elf M. Sternberg: Cool, Aaron started as a designer and went into programming, you started as a programmer and moved into design. How poetic! LessCSS is, indeed, an interesing solution, but the fact that it implies programming sticking it&#039;s fingers in styling is a downer for most web designers. But for your background in programming, it must feel right at home, no?

@Neil Monroe: I don&#039;t know about you, but I find the whole &quot;deployment&quot; issue quite the nuissance 90% of projects. Sure, the really huge web apps that lean on every extra kilobyte do benefit from this approach, but most of the time, it&#039;s just overkill as you&#039;re not really lowering the page load times noticeably.

@Jasper: Thanks, apprently I don&#039;t suck that bad :) Jasper...meet Elf (he commented below). He uses LessCSS too. Be friends :) And another Sarcasm +1 for me.


Just for the record: I&#039;m not proclaiming to know the perfect way to format your CSS, the point of the article was to break down a set of decisions which you can mix&#039;n&#039;match specifically for your projects. I&#039;m a ferm non-believer in a fool-proof, universal, perfect way to format CSS.
That being said, my way is the perfect way :P</description>
		<content:encoded><![CDATA[<p>That..is a bucket load of comments. But everybody deserves an answer, so here goes:</p>
<p>@DesignInformer: exactly; it&#8217;s about what works for you and your team and the project at hand.</p>
<p>@Anthony Hortin: you&#8217;re a god amongst programmers then, and we salute you wholeheartedly.</p>
<p>@MCB Web Design: I agree, and as I&#8217;ve pointed out at the beginning of the post, if you really need to, you can use a minifier.</p>
<p>@Takingweb: thanks for the fav! I try not to think of them as guidelines as much as construction blocks. You build the structure your project needs using the blocks that serve your purpose best. Yeah, I like metaphores, ok?</p>
<p>@Igniatovic Nikola: I ran into the same problem time and time again. Sometimes I&#8217;d give in to their single-line-ess, but other times I would push for multi-line. In time I&#8217;ve learned that it&#8217;s not what I fancy that matters, but what&#8217;s best for the project. And what&#8217;s best for the project is best for us, right? <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>@sajjadul farooque robin: YSlow is kind of a weird tool, if you don&#8217;t configure it a bit. You can set what kind of project you&#8217;re working on, and depending on that, it will adjust it&#8217;s limits. For example, on a blog, multiple CSS files pass ok.</p>
<p>@Alfredo Matos: Good point. That&#8217;s a bonus for keeping the bracket on the next line. Thanks!</p>
<p>@Julian Nicholls: I&#8217;ve seen this approach a few times with other designers but have always found the combination a bit distracting and hard to skim. It&#8217;s a good tip, though, for anyone that has no trouble reading this system.</p>
<p>@Niels Matthijs: as far as I know, not all code editors have an option to color code subjectively, so your tip, although valid, is only applicable to some editors. <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I can see where you&#8217;re coming from. There seems to be a kind of psychological delight to scrolling through hundreds of lines of code. Hey, I&#8217;m guilty too! Some people don&#8217;t find multiple files cumbersome. In fact, if you keep all of them opened (and most of the time there are about 3 files) you can easily switch with a keyboard shortcut. Thanks for the tips on the comments usability, I&#8217;ll take them into consideration! The post button problem was probably at your end, since it&#8217;s peachy fine for everyone else. Perhaps the page didn&#8217;t load fully. Browsers, right? <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>@Henrik Kjelsberg: I agree, most of the time, something like the over-achiever approach doesn&#8217;t pose any problems (plus, it can look pretty impressive right?) but when you&#8217;re dealing with a large project that has a short deadline, every second spent formatting code just for the sake of it looking pretty is time wasted.</p>
<p>@Thomas Craig Consulting: it&#8217;s an interesting idea but I&#8217;m not sure what the upper limit for CSS overwrites is until browsers start to become a bit sluggish on page load. I was talking to a programmer friend just today about this. It&#8217;s unclear how browsers perform when you&#8217;re overwriting say 200 selectors or maybe overwriting 10 selectors 20 times, for example. Of course a lot of factors come in, but I guess it&#8217;s something to think about.</p>
<p>@Duncan Beattie: good approach! I bet most of the time this saves a lot of time on updates. But what do you do when the client demands structural changes? As far as I know, a un-minifier has yet to be invented <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>@Zach Schneider: of course comments are always a good idea, no matter what language you&#8217;re writing in. I don&#8217;t care if you write in C# or HTML or friggin COBOL (that&#8217;s a joke, guys), comments are a must. But comments have nothing to do with formatting your styles. Comments, to me, have to follow the CSS format of choice, not influence it.</p>
<p>@Thom Lohman: <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  javascript without identation is, for me as well, like looking for a needle in a haystack. A big, messy, strange haystack. Eliminating the linebreaks is a good idea if you keep the ending bracket on the next line; that way you save space and don&#8217;t have to worry about deleting it when getting rid of the last attribute and property, like Alfredo Matos mentioned below.</p>
<p>@Zoran Jambor: hey, everybody! we&#8217;ve go one of &#8220;those guys&#8221; here <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  just kidding. But, seriously, how do you read through it? Come clean, are you a Firebug freak?</p>
<p>@Marco Pivetta: as I said in the post, &#8220;the downtime caused by large CSS files is, mostly, insignificant.&#8221; so, there wasn&#8217;t really an argument there, it was a consideration point for all those that are overly concerned with file sizes. So, yeah, I agree it&#8217;s all about editing faster, easier and better.</p>
<p>@Aaron Blakeley: I think most of us like to read through our stylesheets like a story, because, as designer, we are, in a way, telling a story. It&#8217;s a beautiful metaphor and I equally congratulate you for it and despise you for thinking of it before I did. Sarcasm +1 for me <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>@Elf M. Sternberg: Cool, Aaron started as a designer and went into programming, you started as a programmer and moved into design. How poetic! LessCSS is, indeed, an interesing solution, but the fact that it implies programming sticking it&#8217;s fingers in styling is a downer for most web designers. But for your background in programming, it must feel right at home, no?</p>
<p>@Neil Monroe: I don&#8217;t know about you, but I find the whole &#8220;deployment&#8221; issue quite the nuissance 90% of projects. Sure, the really huge web apps that lean on every extra kilobyte do benefit from this approach, but most of the time, it&#8217;s just overkill as you&#8217;re not really lowering the page load times noticeably.</p>
<p>@Jasper: Thanks, apprently I don&#8217;t suck that bad <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Jasper&#8230;meet Elf (he commented below). He uses LessCSS too. Be friends <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  And another Sarcasm +1 for me.</p>
<p>Just for the record: I&#8217;m not proclaiming to know the perfect way to format your CSS, the point of the article was to break down a set of decisions which you can mix&#8217;n'match specifically for your projects. I&#8217;m a ferm non-believer in a fool-proof, universal, perfect way to format CSS.<br />
That being said, my way is the perfect way <img src='http://sickdesigner.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-254</link>
		<dc:creator>Jasper</dc:creator>
		<pubDate>Wed, 21 Apr 2010 18:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-254</guid>
		<description>Wow, really like this post!
I also think the design of this site is terrific!

A very intuitive way to write CSS is LessCSS ( http://www.lesscss.org )
It&#039;s a pity it removes comments in the final css file, but it&#039;s still great!</description>
		<content:encoded><![CDATA[<p>Wow, really like this post!<br />
I also think the design of this site is terrific!</p>
<p>A very intuitive way to write CSS is LessCSS ( <a href="http://www.lesscss.org" rel="nofollow">http://www.lesscss.org</a> )<br />
It&#8217;s a pity it removes comments in the final css file, but it&#8217;s still great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Monroe</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-253</link>
		<dc:creator>Neil Monroe</dc:creator>
		<pubDate>Wed, 21 Apr 2010 15:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-253</guid>
		<description>Everyone should find their own best practices in what works for them, but I have found that working with multiple files helps keep the CSS rules categorized better and therefore easier to find and edit later.

However, I also agree with MCB Web Design about not using CSS minification until project deployment. Your code should be as easy to read when developing. Don&#039;t worry about spaces or newlines. These can all be removed when you&#039;re ready for production.

Combining all the CSS files together as one before minifying is a good idea to help keep the number of requests lower.

Adding good commenting to your CSS code is a must for me, too. It helps a lot when quickly browsing through a long CSS file. Comments can all be removed with a minifyer as well.</description>
		<content:encoded><![CDATA[<p>Everyone should find their own best practices in what works for them, but I have found that working with multiple files helps keep the CSS rules categorized better and therefore easier to find and edit later.</p>
<p>However, I also agree with MCB Web Design about not using CSS minification until project deployment. Your code should be as easy to read when developing. Don&#8217;t worry about spaces or newlines. These can all be removed when you&#8217;re ready for production.</p>
<p>Combining all the CSS files together as one before minifying is a good idea to help keep the number of requests lower.</p>
<p>Adding good commenting to your CSS code is a must for me, too. It helps a lot when quickly browsing through a long CSS file. Comments can all be removed with a minifyer as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elf M. Sternberg</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-252</link>
		<dc:creator>Elf M. Sternberg</dc:creator>
		<pubDate>Wed, 21 Apr 2010 13:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-252</guid>
		<description>As a programmer who moved into design, I&#039;ll say that I&#039;ve always used multi-line and I&#039;ve always indented.  I also am fond of CSS Systems, but what has really made my work joyful is the discovery of &lt;a href=&quot;http://lesscss.org/docs.html&quot; rel=&quot;nofollow&quot;&gt;Leaner CSS&lt;/a&gt;, an automated meta-framework that allows for hierarchal descriptions of CSS.

CSS frustrates programmers because it&#039;s completely flat: every description describes a single kind of element, whereas HTML is containerized, and may contain many kinds of elements.  LessCSS makes  CSS conceptually resemble your HTML, and that makes it so much better.</description>
		<content:encoded><![CDATA[<p>As a programmer who moved into design, I&#8217;ll say that I&#8217;ve always used multi-line and I&#8217;ve always indented.  I also am fond of CSS Systems, but what has really made my work joyful is the discovery of <a href="http://lesscss.org/docs.html" rel="nofollow">Leaner CSS</a>, an automated meta-framework that allows for hierarchal descriptions of CSS.</p>
<p>CSS frustrates programmers because it&#8217;s completely flat: every description describes a single kind of element, whereas HTML is containerized, and may contain many kinds of elements.  LessCSS makes  CSS conceptually resemble your HTML, and that makes it so much better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Blakeley</title>
		<link>http://sickdesigner.com/index.php/2010/html-css/the-definitive-guide-to-formatting-css/#comment-251</link>
		<dc:creator>Aaron Blakeley</dc:creator>
		<pubDate>Wed, 21 Apr 2010 13:36:59 +0000</pubDate>
		<guid isPermaLink="false">http://sickdesigner.com/?p=924#comment-251</guid>
		<description>To preface this I  got my start in design and added programing to my skill set.  I personally write single line css.  and group like elements together.  It saves time when scrolling through and looking for an offending style. I really have no problem reading it.  Different strokes for different folks I guess.  I find the that reading the single line is like reading a story.  First the paragraph put on color #FFFFF then it changed to bold .... you get the idea.</description>
		<content:encoded><![CDATA[<p>To preface this I  got my start in design and added programing to my skill set.  I personally write single line css.  and group like elements together.  It saves time when scrolling through and looking for an offending style. I really have no problem reading it.  Different strokes for different folks I guess.  I find the that reading the single line is like reading a story.  First the paragraph put on color #FFFFF then it changed to bold &#8230;. you get the idea.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

