<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: How I Format My CSS&#160;Files</title> <atom:link href="http://davidwalsh.name/format-css-files/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/format-css-files</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 07:54:33 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: david</title><link>http://davidwalsh.name/format-css-files/comment-page-1#comment-1784</link> <dc:creator>david</dc:creator> <pubDate>Thu, 19 Jun 2008 12:09:22 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=279#comment-1784</guid> <description>@Richard:  I used to try to but it got too difficult to maintain.  I would put attributes like margin, padding, width, and height first, because they would change most often.  Like I said though, it just got too tough.</description> <content:encoded><![CDATA[<p>@Richard:  I used to try to but it got too difficult to maintain.  I would put attributes like margin, padding, width, and height first, because they would change most often.  Like I said though, it just got too tough.</p> ]]></content:encoded> </item> <item><title>By: Richard Standbrook</title><link>http://davidwalsh.name/format-css-files/comment-page-1#comment-1782</link> <dc:creator>Richard Standbrook</dc:creator> <pubDate>Thu, 19 Jun 2008 09:16:17 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=279#comment-1782</guid> <description>This looks like a great approach, I will give it a go. All attributes on one line seems a little harder to read and manage, I will see how I get on.@David, do you keep your attributes in a certain order? Alphabetical? As it comes?</description> <content:encoded><![CDATA[<p>This looks like a great approach, I will give it a go. All attributes on one line seems a little harder to read and manage, I will see how I get on.</p><p>@David, do you keep your attributes in a certain order? Alphabetical? As it comes?</p> ]]></content:encoded> </item> <item><title>By: OrganizedFellow</title><link>http://davidwalsh.name/format-css-files/comment-page-1#comment-1745</link> <dc:creator>OrganizedFellow</dc:creator> <pubDate>Mon, 16 Jun 2008 17:15:48 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=279#comment-1745</guid> <description>I (just as everyone else) use similar but slightly different methods.I have my properties in alphabetical order, it makes it very easy to find what I need.
As for your method, &#039;Globals, Structure, Tags, Custom Classes, Links&#039;, it makes absolute sense to have it that way!
I generally kept my ID &amp; CLASS selectors separated from the TAGS. I like your method better!</description> <content:encoded><![CDATA[<p>I (just as everyone else) use similar but slightly different methods.</p><p>I have my properties in alphabetical order, it makes it very easy to find what I need.<br
/> As for your method, &#8216;Globals, Structure, Tags, Custom Classes, Links&#8217;, it makes absolute sense to have it that way!<br
/> I generally kept my ID &amp; CLASS selectors separated from the TAGS. I like your method better!</p> ]]></content:encoded> </item> <item><title>By: Eric Wendelin</title><link>http://davidwalsh.name/format-css-files/comment-page-1#comment-1744</link> <dc:creator>Eric Wendelin</dc:creator> <pubDate>Mon, 16 Jun 2008 17:04:55 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=279#comment-1744</guid> <description>@Matthias:
jEdit has a plugin that allows you to set a background for the edit area.</description> <content:encoded><![CDATA[<p>@Matthias:<br
/> jEdit has a plugin that allows you to set a background for the edit area.</p> ]]></content:encoded> </item> <item><title>By: Marouane Marzouki</title><link>http://davidwalsh.name/format-css-files/comment-page-1#comment-1735</link> <dc:creator>Marouane Marzouki</dc:creator> <pubDate>Mon, 16 Jun 2008 13:19:24 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=279#comment-1735</guid> <description>Nice way to make a good looking CSS file. I like it, although I still adhere to the idea that one-line selectors and attributes is not that easy and clear for many people especially for beginners when they want to place comments at the end of almost every line (every attribute !!!).
Nevertheless, I like it very very much.</description> <content:encoded><![CDATA[<p>Nice way to make a good looking CSS file. I like it, although I still adhere to the idea that one-line selectors and attributes is not that easy and clear for many people especially for beginners when they want to place comments at the end of almost every line (every attribute !!!).<br
/> Nevertheless, I like it very very much.</p> ]]></content:encoded> </item> <item><title>By: jack</title><link>http://davidwalsh.name/format-css-files/comment-page-1#comment-1723</link> <dc:creator>jack</dc:creator> <pubDate>Sun, 15 Jun 2008 05:45:26 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=279#comment-1723</guid> <description>very nice post!
How about a post on &#039;css the basic stuff you want there?&#039; :)
It could be one level more deeper then the style of the file - give the reader the option to see what the basic set of rules will do to their web pages.
J.</description> <content:encoded><![CDATA[<p>very nice post!<br
/> How about a post on &#8216;css the basic stuff you want there?&#8217; :)<br
/> It could be one level more deeper then the style of the file &#8211; give the reader the option to see what the basic set of rules will do to their web pages.<br
/> J.</p> ]]></content:encoded> </item> <item><title>By: Lynda</title><link>http://davidwalsh.name/format-css-files/comment-page-1#comment-1720</link> <dc:creator>Lynda</dc:creator> <pubDate>Sat, 14 Jun 2008 17:39:47 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=279#comment-1720</guid> <description>Thanks for the great post.  I keep intending to organize my CSS code, especially now that I&#039;m freelancing full time.  But my self-discipline leaves much to be desired!  LOL  I think your structure makes a ton of sense and plan to use it as the basis for my own DISCIPLINED organization starting today!</description> <content:encoded><![CDATA[<p>Thanks for the great post.  I keep intending to organize my CSS code, especially now that I&#8217;m freelancing full time.  But my self-discipline leaves much to be desired!  LOL  I think your structure makes a ton of sense and plan to use it as the basis for my own DISCIPLINED organization starting today!</p> ]]></content:encoded> </item> <item><title>By: Mike Liston</title><link>http://davidwalsh.name/format-css-files/comment-page-1#comment-1680</link> <dc:creator>Mike Liston</dc:creator> <pubDate>Fri, 13 Jun 2008 02:40:17 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=279#comment-1680</guid> <description>Awesome post!  I&#039;ve been doing my css files like this for years and the readability is so much easier.  It&#039;s nice you can get the whole &quot;picture&quot; of your css stuff on one screen without scrolling.  Anyone who hasn&#039;t tried it, it is worth a go.</description> <content:encoded><![CDATA[<p>Awesome post!  I&#8217;ve been doing my css files like this for years and the readability is so much easier.  It&#8217;s nice you can get the whole &#8220;picture&#8221; of your css stuff on one screen without scrolling.  Anyone who hasn&#8217;t tried it, it is worth a go.</p> ]]></content:encoded> </item> <item><title>By: deef</title><link>http://davidwalsh.name/format-css-files/comment-page-1#comment-1672</link> <dc:creator>deef</dc:creator> <pubDate>Thu, 12 Jun 2008 19:16:56 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=279#comment-1672</guid> <description>I follow you on the indenting and sub-indenting and the medias in one file.The way I like to use a CSS-builder in PHP that gets every css-include I need and generates one file (1 http-request) for the site-wide styling.  Before output the CSS is cleaned using CSSTidy.For easy themes I like to separate classes over two different files.  One file containing only structure (width, height, padding, margin, display, ...) and one file containing theme styling (colors, backgrounds, cursor, ...).  CSSTidy will just join them for me afterwards and this way I can e.g. easily adapt my theme to e.g. a christmas theme.  Off course CSSTidy only runs once to write the server-side cache.Should a certain page require additional CSS I include a page-specific CSS-file built in the same way.</description> <content:encoded><![CDATA[<p>I follow you on the indenting and sub-indenting and the medias in one file.</p><p>The way I like to use a CSS-builder in PHP that gets every css-include I need and generates one file (1 http-request) for the site-wide styling.  Before output the CSS is cleaned using CSSTidy.</p><p>For easy themes I like to separate classes over two different files.  One file containing only structure (width, height, padding, margin, display, &#8230;) and one file containing theme styling (colors, backgrounds, cursor, &#8230;).  CSSTidy will just join them for me afterwards and this way I can e.g. easily adapt my theme to e.g. a christmas theme.  Off course CSSTidy only runs once to write the server-side cache.</p><p>Should a certain page require additional CSS I include a page-specific CSS-file built in the same way.</p> ]]></content:encoded> </item> <item><title>By: Rob Allen</title><link>http://davidwalsh.name/format-css-files/comment-page-1#comment-1671</link> <dc:creator>Rob Allen</dc:creator> <pubDate>Thu, 12 Jun 2008 18:16:23 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=279#comment-1671</guid> <description>Great post. Its nice to see some other folks out there with opinions on this kind of thing.I have been separating my styles into logical blocks for a while now but i take it a step further. I typically start with HTML tags, then the structural stuff that&#039;s common across the site, then common/general classes, then I make sections below that for other logical groups with commented headers.I might have to give the whole one-line and tabbed thing a try.One other thing I like doing is creating my css as a php page with the colors defined in variables at the top so I can change color schemes more readily as I reuse sheets. It&#039;s also great for demonstrating how the site would look in different widths for clients.Thanks again.</description> <content:encoded><![CDATA[<p>Great post. Its nice to see some other folks out there with opinions on this kind of thing.</p><p>I have been separating my styles into logical blocks for a while now but i take it a step further. I typically start with HTML tags, then the structural stuff that&#8217;s common across the site, then common/general classes, then I make sections below that for other logical groups with commented headers.</p><p>I might have to give the whole one-line and tabbed thing a try.</p><p>One other thing I like doing is creating my css as a php page with the colors defined in variables at the top so I can change color schemes more readily as I reuse sheets. It&#8217;s also great for demonstrating how the site would look in different widths for clients.</p><p>Thanks again.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching using disk: basic
Object Caching 865/866 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 03:38:02 -->
