<?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: How I write my CSS, and why</title>
	<atom:link href="http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/</link>
	<description>Adventures in teh interwebz</description>
	<lastBuildDate>Mon, 09 Aug 2010 21:33:15 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Espen 'Rexxars' Hovlandsdal</title>
		<link>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/comment-page-1/#comment-35</link>
		<dc:creator>Espen 'Rexxars' Hovlandsdal</dc:creator>
		<pubDate>Fri, 27 Nov 2009 09:46:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fakedarren.com/?p=14#comment-35</guid>
		<description>The uppercased tag names sounds weird to me, I guess I&#039;m used to XHTML by now - seeing HTML with uppercased tags gross me out, so I avoid that in CSS aswell.

I like the readability of multi-line style declarations, but for my latest project I went with single-line. I find it a bit easier to see the different &quot;sections&quot; of the site this way. Yet to decide which method I like best though.

If I was given enough time I might use alphabetic ordering, but I don&#039;t :p</description>
		<content:encoded><![CDATA[<p>The uppercased tag names sounds weird to me, I guess I&#8217;m used to XHTML by now &#8211; seeing HTML with uppercased tags gross me out, so I avoid that in CSS aswell.</p>
<p>I like the readability of multi-line style declarations, but for my latest project I went with single-line. I find it a bit easier to see the different &#8220;sections&#8221; of the site this way. Yet to decide which method I like best though.</p>
<p>If I was given enough time I might use alphabetic ordering, but I don&#8217;t :p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morgan</title>
		<link>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/comment-page-1/#comment-26</link>
		<dc:creator>Morgan</dc:creator>
		<pubDate>Thu, 12 Nov 2009 15:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fakedarren.com/?p=14#comment-26</guid>
		<description>nice article, though I have to agree when I did/do get my hands dirty with CSS I think alphabetic ordering is above and beyond.. do you have days for your socks? :p

That said I&#039;m more of a tinkerer than a full blown CSS guru, so some very interesting reading in the above..</description>
		<content:encoded><![CDATA[<p>nice article, though I have to agree when I did/do get my hands dirty with CSS I think alphabetic ordering is above and beyond.. do you have days for your socks? :p</p>
<p>That said I&#8217;m more of a tinkerer than a full blown CSS guru, so some very interesting reading in the above..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: basher</title>
		<link>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/comment-page-1/#comment-25</link>
		<dc:creator>basher</dc:creator>
		<pubDate>Mon, 02 Nov 2009 10:19:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fakedarren.com/?p=14#comment-25</guid>
		<description>Small, modular CSS files - definitely.

IE styles in separate sheets - again, a must.

I&#039;m not a fan of single-line declarations, but we use them at work, so it&#039;s a case of fitting in with the team.

I tend to group my properties logically - e.g. font-related stuff, box-model stuff. 

With Firebug I don&#039;t see the need for alphabetic ordering... even though I do suffer from OCD!

Nice article... looking forward to reading more.</description>
		<content:encoded><![CDATA[<p>Small, modular CSS files &#8211; definitely.</p>
<p>IE styles in separate sheets &#8211; again, a must.</p>
<p>I&#8217;m not a fan of single-line declarations, but we use them at work, so it&#8217;s a case of fitting in with the team.</p>
<p>I tend to group my properties logically &#8211; e.g. font-related stuff, box-model stuff. </p>
<p>With Firebug I don&#8217;t see the need for alphabetic ordering&#8230; even though I do suffer from OCD!</p>
<p>Nice article&#8230; looking forward to reading more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: akaIDIOT</title>
		<link>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/comment-page-1/#comment-21</link>
		<dc:creator>akaIDIOT</dc:creator>
		<pubDate>Sun, 01 Nov 2009 18:38:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fakedarren.com/?p=14#comment-21</guid>
		<description>Although I might not agree on all your styling rules (harhar), the main thing here is to be consistent and sensible about these things. Too often these things become a mess when more then one person is to edit the files. 

What I&#039;m missing in you article is a naming convention for class names. I usually use hyphened class names like .some-class as everything else in CSS is lowercase. I imagine you and other people would have different approaches to this :)</description>
		<content:encoded><![CDATA[<p>Although I might not agree on all your styling rules (harhar), the main thing here is to be consistent and sensible about these things. Too often these things become a mess when more then one person is to edit the files. </p>
<p>What I&#8217;m missing in you article is a naming convention for class names. I usually use hyphened class names like .some-class as everything else in CSS is lowercase. I imagine you and other people would have different approaches to this <img src='http://blog.fakedarren.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kas187</title>
		<link>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/comment-page-1/#comment-19</link>
		<dc:creator>kas187</dc:creator>
		<pubDate>Fri, 30 Oct 2009 23:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fakedarren.com/?p=14#comment-19</guid>
		<description>My approach is pretty similar to Darrens&#039; and i guess working with him does rub off some tips and tricks.  One thing i always do is to split my stylesheets (modularising) so layout, typography, main etc etc. It&#039;s much easier to maintain a bunch of files and has benefits of long-term maintenance. 

What I also do is to include a snippet of comments at the beginning of each stylesheet which gives an overview of what the stylesheet is about and a brief table of contents with keyword searchability to different sections.

What i also do is to keep a naming convention consistent throughout the html, css and javascript so that i know what belongs to what.

Oh and thats 2,000 liner, yeah I remember that so don&#039;t bring back memories.

With regards to IE hacks. I never include any in the main stylesheet. All IE hacks, filters and work arounds are in a separate stylesheet which again is a for long term maintenance.

What I have also started to do on projects where IE6 is not needing support is to follow a &lt;a href=&quot;http://www.stubbornella.org/content/2009/03/23/object-oriented-css-video-on-ydn/&quot; rel=&quot;nofollow&quot;&gt;Object orientated approach to CSS&lt;/a&gt;, so extending any components with addition of class and necessary styles / js (Moo FTW!). Nicole sullivan has some great tips on how to do just that so google is your friend.

Thats it from me. Great article and nice to see how other developers approach this.</description>
		<content:encoded><![CDATA[<p>My approach is pretty similar to Darrens&#8217; and i guess working with him does rub off some tips and tricks.  One thing i always do is to split my stylesheets (modularising) so layout, typography, main etc etc. It&#8217;s much easier to maintain a bunch of files and has benefits of long-term maintenance. </p>
<p>What I also do is to include a snippet of comments at the beginning of each stylesheet which gives an overview of what the stylesheet is about and a brief table of contents with keyword searchability to different sections.</p>
<p>What i also do is to keep a naming convention consistent throughout the html, css and javascript so that i know what belongs to what.</p>
<p>Oh and thats 2,000 liner, yeah I remember that so don&#8217;t bring back memories.</p>
<p>With regards to IE hacks. I never include any in the main stylesheet. All IE hacks, filters and work arounds are in a separate stylesheet which again is a for long term maintenance.</p>
<p>What I have also started to do on projects where IE6 is not needing support is to follow a <a href="http://www.stubbornella.org/content/2009/03/23/object-oriented-css-video-on-ydn/" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/www.stubbornella.org/content/2009/03/23/object-oriented-css-video-on-ydn/?referer=');">Object orientated approach to CSS</a>, so extending any components with addition of class and necessary styles / js (Moo FTW!). Nicole sullivan has some great tips on how to do just that so google is your friend.</p>
<p>Thats it from me. Great article and nice to see how other developers approach this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabio M. Costa</title>
		<link>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/comment-page-1/#comment-18</link>
		<dc:creator>Fabio M. Costa</dc:creator>
		<pubDate>Fri, 30 Oct 2009 22:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fakedarren.com/?p=14#comment-18</guid>
		<description>yeah cool, i liked your points but my style is different, totally. I liked the uppercased tags, but won&#039;t use it hehe.

And i use my ie css hacks (i try to make them smallest as possible) on the same file because its easier to maintain. I mean if you have to change something after the site has been deployed you&#039;ll change the original css but for sure will forget the ie hack file.

But nowadays im ust using hacks for png transparency (most of the times), which i keep on a different file.</description>
		<content:encoded><![CDATA[<p>yeah cool, i liked your points but my style is different, totally. I liked the uppercased tags, but won&#8217;t use it hehe.</p>
<p>And i use my ie css hacks (i try to make them smallest as possible) on the same file because its easier to maintain. I mean if you have to change something after the site has been deployed you&#8217;ll change the original css but for sure will forget the ie hack file.</p>
<p>But nowadays im ust using hacks for png transparency (most of the times), which i keep on a different file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Aylott</title>
		<link>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/comment-page-1/#comment-17</link>
		<dc:creator>Thomas Aylott</dc:creator>
		<pubDate>Fri, 30 Oct 2009 19:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fakedarren.com/?p=14#comment-17</guid>
		<description>Also, I believe that it&#039;s important to stick with the style of any project you join. If I joined one of your projects I would use your style to the best of my ability. But if you joined my project I&#039;d expect you to code to the project standards. And I&#039;m sure you would.</description>
		<content:encoded><![CDATA[<p>Also, I believe that it&#8217;s important to stick with the style of any project you join. If I joined one of your projects I would use your style to the best of my ability. But if you joined my project I&#8217;d expect you to code to the project standards. And I&#8217;m sure you would.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Aylott</title>
		<link>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/comment-page-1/#comment-16</link>
		<dc:creator>Thomas Aylott</dc:creator>
		<pubDate>Fri, 30 Oct 2009 19:38:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fakedarren.com/?p=14#comment-16</guid>
		<description>Above all I believe it&#039;s important to have a style and stick to it.

My only die-hard rule for css is separate files for each &quot;component&quot;. If you can get people to agree with that one then the rest is a non-issue.</description>
		<content:encoded><![CDATA[<p>Above all I believe it&#8217;s important to have a style and stick to it.</p>
<p>My only die-hard rule for css is separate files for each &#8220;component&#8221;. If you can get people to agree with that one then the rest is a non-issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Aylott</title>
		<link>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/comment-page-1/#comment-15</link>
		<dc:creator>Thomas Aylott</dc:creator>
		<pubDate>Fri, 30 Oct 2009 19:34:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fakedarren.com/?p=14#comment-15</guid>
		<description>oh yeah, uppercasing tags is pure madness :P</description>
		<content:encoded><![CDATA[<p>oh yeah, uppercasing tags is pure madness <img src='http://blog.fakedarren.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Aylott</title>
		<link>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/comment-page-1/#comment-14</link>
		<dc:creator>Thomas Aylott</dc:creator>
		<pubDate>Fri, 30 Oct 2009 19:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.fakedarren.com/?p=14#comment-14</guid>
		<description>I often have to work with teams of devs I&#039;ve never met before and will never see again. Multiple internal styles.

I highly recommend CSSEdit.app on the Mac. Very very nice for quickly getting stuff done. Especially new projects.

Here are my rules...

* Small focused separate css files. Compiled into a single compressed file using a build script for production mode only.

* Never Indent anything but properties.

* Never commit single-line rules. (as the maintainer of the CSS.tmbundle I&#039;ve added a number of tools to quickly reformat your selection, might be in experimental on my github only)

* Always reformat all sheets as a separate commit before beginning anything new on an existing project. (for some reason clients go nuts for this simple reformatting ;)

* Sort properties in logical groups when hand coding. TRBL sorting. When using CSSEdit I just let it do what it does.

* Prefer separate IE css, but also mix only very stable IE hacks into my main CSS file. I&#039;ve tried keeping them separate but it becomes a maintenance issue.

* Use CSSEdit Groups to keep things separate when separate files aren&#039;t possible.</description>
		<content:encoded><![CDATA[<p>I often have to work with teams of devs I&#8217;ve never met before and will never see again. Multiple internal styles.</p>
<p>I highly recommend CSSEdit.app on the Mac. Very very nice for quickly getting stuff done. Especially new projects.</p>
<p>Here are my rules&#8230;</p>
<p>* Small focused separate css files. Compiled into a single compressed file using a build script for production mode only.</p>
<p>* Never Indent anything but properties.</p>
<p>* Never commit single-line rules. (as the maintainer of the CSS.tmbundle I&#8217;ve added a number of tools to quickly reformat your selection, might be in experimental on my github only)</p>
<p>* Always reformat all sheets as a separate commit before beginning anything new on an existing project. (for some reason clients go nuts for this simple reformatting <img src='http://blog.fakedarren.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>* Sort properties in logical groups when hand coding. TRBL sorting. When using CSSEdit I just let it do what it does.</p>
<p>* Prefer separate IE css, but also mix only very stable IE hacks into my main CSS file. I&#8217;ve tried keeping them separate but it becomes a maintenance issue.</p>
<p>* Use CSSEdit Groups to keep things separate when separate files aren&#8217;t possible.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
