<?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: Conserving class names</title>
	<atom:link href="http://www.elliotswan.com/2006/05/23/conserving-class-names/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.elliotswan.com/2006/05/23/conserving-class-names/</link>
	<description>designs stuff and writes code.</description>
	<lastBuildDate>Tue, 07 Sep 2010 09:08:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Elliot Swan</title>
		<link>http://www.elliotswan.com/2006/05/23/conserving-class-names/comment-page-1/#comment-1905</link>
		<dc:creator>Elliot Swan</dc:creator>
		<pubDate>Wed, 24 May 2006 16:32:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliotswan.com/2006/05/23/conserving-class-names/#comment-1905</guid>
		<description>Multiple classes is another way to do it (as I mentioned), but if you can do it with just one class, why not?</description>
		<content:encoded><![CDATA[<p>Multiple classes is another way to do it (as I mentioned), but if you can do it with just one class, why not?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glen C.</title>
		<link>http://www.elliotswan.com/2006/05/23/conserving-class-names/comment-page-1/#comment-1889</link>
		<dc:creator>Glen C.</dc:creator>
		<pubDate>Wed, 24 May 2006 02:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliotswan.com/2006/05/23/conserving-class-names/#comment-1889</guid>
		<description>Well here is where I&#039;d probably use something like multiple classes to combine different bits of style contained in each class and add them together. Of course, this only works in some cases, but makes for a lot leaner code and less repetition. (which reminds me I need to optimize my css a little)</description>
		<content:encoded><![CDATA[<p>Well here is where I&#8217;d probably use something like multiple classes to combine different bits of style contained in each class and add them together. Of course, this only works in some cases, but makes for a lot leaner code and less repetition. (which reminds me I need to optimize my css a little)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliot Swan</title>
		<link>http://www.elliotswan.com/2006/05/23/conserving-class-names/comment-page-1/#comment-1888</link>
		<dc:creator>Elliot Swan</dc:creator>
		<pubDate>Wed, 24 May 2006 02:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliotswan.com/2006/05/23/conserving-class-names/#comment-1888</guid>
		<description>@Steven: Thanks. :) Being the swan is my logo, it seemed like the natural choice. Originally, it came from a photograph that I drew over with the  pen tool in photoshop.</description>
		<content:encoded><![CDATA[<p>@Steven: Thanks. <img src='http://www.elliotswan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Being the swan is my logo, it seemed like the natural choice. Originally, it came from a photograph that I drew over with the  pen tool in photoshop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Rasnick</title>
		<link>http://www.elliotswan.com/2006/05/23/conserving-class-names/comment-page-1/#comment-1885</link>
		<dc:creator>Steven Rasnick</dc:creator>
		<pubDate>Wed, 24 May 2006 00:00:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliotswan.com/2006/05/23/conserving-class-names/#comment-1885</guid>
		<description>Elliot, this is completely irrevelant to the subject, but I love the design of your website.

&lt;i&gt;Steven, the reboot was weeks ago, why are you saying this now?&lt;/i&gt;

I&#039;m just now saying this because honestly, the first time I saw it, I hated it. But now, it&#039;s kinda grown on me. It&#039;s the little things, too. Like using the swan symbol to end all posts. Where did you get that swan anyway?

Don&#039;t know what that does for you but anyway...</description>
		<content:encoded><![CDATA[<p>Elliot, this is completely irrevelant to the subject, but I love the design of your website.</p>
<p><i>Steven, the reboot was weeks ago, why are you saying this now?</i></p>
<p>I&#8217;m just now saying this because honestly, the first time I saw it, I hated it. But now, it&#8217;s kinda grown on me. It&#8217;s the little things, too. Like using the swan symbol to end all posts. Where did you get that swan anyway?</p>
<p>Don&#8217;t know what that does for you but anyway&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliot Swan</title>
		<link>http://www.elliotswan.com/2006/05/23/conserving-class-names/comment-page-1/#comment-1884</link>
		<dc:creator>Elliot Swan</dc:creator>
		<pubDate>Tue, 23 May 2006 23:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliotswan.com/2006/05/23/conserving-class-names/#comment-1884</guid>
		<description>By the way, I just edited some of the code in my post to make it a little bit more clear.</description>
		<content:encoded><![CDATA[<p>By the way, I just edited some of the code in my post to make it a little bit more clear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliot Swan</title>
		<link>http://www.elliotswan.com/2006/05/23/conserving-class-names/comment-page-1/#comment-1883</link>
		<dc:creator>Elliot Swan</dc:creator>
		<pubDate>Tue, 23 May 2006 22:26:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliotswan.com/2006/05/23/conserving-class-names/#comment-1883</guid>
		<description>@Brad: Yeah, I realize you could do something like that for this specific example (put a class on the first that over-rides the rest), but I was trying to illustrate a way to control multiple exceptions. So if you wanted everything with a &lt;em&gt;title&lt;/em&gt; class to function differently than your normal h2s, but still wanted to have a little variation among those.

@Adam: Yeah, it&#039;s really easy to go to down with that stuff. Sometimes I have to consciously force myself to think, &quot;Do I really need this?&quot;</description>
		<content:encoded><![CDATA[<p>@Brad: Yeah, I realize you could do something like that for this specific example (put a class on the first that over-rides the rest), but I was trying to illustrate a way to control multiple exceptions. So if you wanted everything with a <em>title</em> class to function differently than your normal h2s, but still wanted to have a little variation among those.</p>
<p>@Adam: Yeah, it&#8217;s really easy to go to down with that stuff. Sometimes I have to consciously force myself to think, &#8220;Do I really need this?&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AdamD</title>
		<link>http://www.elliotswan.com/2006/05/23/conserving-class-names/comment-page-1/#comment-1882</link>
		<dc:creator>AdamD</dc:creator>
		<pubDate>Tue, 23 May 2006 22:19:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliotswan.com/2006/05/23/conserving-class-names/#comment-1882</guid>
		<description>Good stuff, E. Even though I know not to over-crowd the class names, I still do it sometimes out of laziness. Your example shows how simple it can be.</description>
		<content:encoded><![CDATA[<p>Good stuff, E. Even though I know not to over-crowd the class names, I still do it sometimes out of laziness. Your example shows how simple it can be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Bice</title>
		<link>http://www.elliotswan.com/2006/05/23/conserving-class-names/comment-page-1/#comment-1881</link>
		<dc:creator>Brad Bice</dc:creator>
		<pubDate>Tue, 23 May 2006 22:04:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliotswan.com/2006/05/23/conserving-class-names/#comment-1881</guid>
		<description>Hmm, yeah the XHTML above didn&#039;t print right. It should include no classes at all.

&lt;em&gt;Author&#039;s note: Fixed. If you want to show HTML, you have to run it through something like &lt;a href=&quot;http://www.elliotswan.com/postable/&quot;&gt;Postable&lt;/a&gt; first. - Elliot&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>Hmm, yeah the XHTML above didn&#8217;t print right. It should include no classes at all.</p>
<p><em>Author&#8217;s note: Fixed. If you want to show HTML, you have to run it through something like <a href="http://www.elliotswan.com/postable/">Postable</a> first. &#8211; Elliot</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Bice</title>
		<link>http://www.elliotswan.com/2006/05/23/conserving-class-names/comment-page-1/#comment-1879</link>
		<dc:creator>Brad Bice</dc:creator>
		<pubDate>Tue, 23 May 2006 22:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliotswan.com/2006/05/23/conserving-class-names/#comment-1879</guid>
		<description>You could also cut out the extra classes and just use a class for the first h2 (or none at all if they will all look the same within their respective divs):

&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;

&lt;pre&gt;&lt;code&gt;&lt;div id=&quot;header&quot;&gt;
   &lt;h1&gt;My sweet site&lt;/h1&gt;
   &lt;h2&gt;A description of why my site is so sweet&lt;/h2&gt;
&lt;/div&gt;
&lt;div id=&quot;content&quot;&gt;
   &lt;h2&gt;My content&lt;/h2&gt;
   &lt;h2&gt;bla&lt;/h2&gt;
       &lt;p&gt;Lots of juicy content.&lt;/p&gt;
   &lt;h2&gt;bla &lt;strong&gt;again&lt;/strong&gt;&lt;/h2&gt;
       &lt;p&gt;Lots more juicy content.&lt;/p&gt;
   &lt;h2&gt;bla again!&lt;/h2&gt;
       &lt;p&gt;Even more!&lt;/p&gt;
&lt;/div&gt;
&lt;div id=&quot;secondary-content&quot;&gt;
   &lt;h2&gt;Introductions&lt;/h2&gt;
        &lt;p&gt;Whatever.&lt;/p&gt;
   &lt;h2&gt;A somewhat similar,
   yet a little different, title&lt;/h2&gt;
         &lt;p&gt;Yeah, what he said.&lt;/p&gt;
   &lt;h2&gt;&lt;a href=&quot;#&quot;&gt;some link
   in a header&lt;/a&gt;&lt;/h2&gt;
         &lt;p&gt;Yeah, what he said (again).&lt;/p&gt;
&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;

and your CSS would become the following:

&lt;pre&gt;&lt;code&gt;
div#content h2 {
background: pink; /* go figure */
}

div#content h2 a {
text-decoration: none;
border-bottom: 1px dotted black;
}

div#content h2 strong {
color: white;
}

/* etc, etc, etc */
&lt;/code&gt;&lt;/pre&gt;

and the extras:

&lt;pre&gt;&lt;code&gt;div#content h2 {
font: 3em arial;
}

div#secondary-content h2 {
font: 2em Georgia;
}&lt;/code&gt;&lt;/pre&gt;

This should clean up the code a little bit and get rid of some of the classitis.</description>
		<content:encoded><![CDATA[<p>You could also cut out the extra classes and just use a class for the first h2 (or none at all if they will all look the same within their respective divs):</p>
<p></p>
<pre><code>&lt;div id=&quot;header&quot;&gt;
   &lt;h1&gt;My sweet site&lt;/h1&gt;
   &lt;h2&gt;A description of why my site is so sweet&lt;/h2&gt;
&lt;/div&gt;
&lt;div id=&quot;content&quot;&gt;
   &lt;h2&gt;My content&lt;/h2&gt;
   &lt;h2&gt;bla&lt;/h2&gt;
       &lt;p&gt;Lots of juicy content.&lt;/p&gt;
   &lt;h2&gt;bla &lt;strong&gt;again&lt;/strong&gt;&lt;/h2&gt;
       &lt;p&gt;Lots more juicy content.&lt;/p&gt;
   &lt;h2&gt;bla again!&lt;/h2&gt;
       &lt;p&gt;Even more!&lt;/p&gt;
&lt;/div&gt;
&lt;div id=&quot;secondary-content&quot;&gt;
   &lt;h2&gt;Introductions&lt;/h2&gt;
        &lt;p&gt;Whatever.&lt;/p&gt;
   &lt;h2&gt;A somewhat similar,
   yet a little different, title&lt;/h2&gt;
         &lt;p&gt;Yeah, what he said.&lt;/p&gt;
   &lt;h2&gt;&lt;a href=&quot;#&quot;&gt;some link
   in a header&lt;/a&gt;&lt;/h2&gt;
         &lt;p&gt;Yeah, what he said (again).&lt;/p&gt;
&lt;/div&gt;</code></pre>
<p>and your CSS would become the following:</p>
<pre><code>
div#content h2 {
background: pink; /* go figure */
}

div#content h2 a {
text-decoration: none;
border-bottom: 1px dotted black;
}

div#content h2 strong {
color: white;
}

/* etc, etc, etc */
</code></pre>
<p>and the extras:</p>
<pre><code>div#content h2 {
font: 3em arial;
}

div#secondary-content h2 {
font: 2em Georgia;
}</code></pre>
<p>This should clean up the code a little bit and get rid of some of the classitis.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
