<?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: Optimize Your CSS with Multi-Class Elements</title>
	<atom:link href="http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/</link>
	<description>Internet Marketing, Website Promotion and Blogging Advice</description>
	<lastBuildDate>Mon, 15 Mar 2010 14:17:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jay Adkins</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-134039</link>
		<dc:creator>Jay Adkins</dc:creator>
		<pubDate>Thu, 26 Mar 2009 19:17:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-134039</guid>
		<description>Nice article! Also, the comments about the order above are very helpful. Thanks guys!</description>
		<content:encoded><![CDATA[<p>Nice article! Also, the comments about the order above are very helpful. Thanks guys!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul OB</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-119787</link>
		<dc:creator>Paul OB</dc:creator>
		<pubDate>Mon, 22 Dec 2008 18:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-119787</guid>
		<description>Yes Bryce is correct in post 13 and it&#039;s the css order not the class order in the html that matters. I don&#039;t know what I was thinking - apologies for mis-information.</description>
		<content:encoded><![CDATA[<p>Yes Bryce is correct in post 13 and it&#8217;s the css order not the class order in the html that matters. I don&#8217;t know what I was thinking &#8211; apologies for mis-information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: azrael_valedhel</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-119738</link>
		<dc:creator>azrael_valedhel</dc:creator>
		<pubDate>Mon, 22 Dec 2008 09:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-119738</guid>
		<description>Now this is something I will use right away. :) So simple, and so usable - it scares me I didnt even know about it.
Thanks!</description>
		<content:encoded><![CDATA[<p>Now this is something I will use right away. <img src='http://www.search-this.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So simple, and so usable &#8211; it scares me I didnt even know about it.<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryce</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-115868</link>
		<dc:creator>Bryce</dc:creator>
		<pubDate>Wed, 26 Nov 2008 18:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-115868</guid>
		<description>I know I&#039;m a bit late to the party, but Paul&#039;s comments in #10 are incorrect.  In the case of a &quot;tie&quot;, it&#039;s the order of the CSS, not the class name.  In that example, class=”two three one” and class=”one two three” will both result in green text.  If you want it to be red, you&#039;d have to reorder the CSS rules to have .one be last.</description>
		<content:encoded><![CDATA[<p>I know I&#8217;m a bit late to the party, but Paul&#8217;s comments in #10 are incorrect.  In the case of a &#8220;tie&#8221;, it&#8217;s the order of the CSS, not the class name.  In that example, class=”two three one” and class=”one two three” will both result in green text.  If you want it to be red, you&#8217;d have to reorder the CSS rules to have .one be last.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-40974</link>
		<dc:creator>Yuri</dc:creator>
		<pubDate>Wed, 20 Feb 2008 11:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-40974</guid>
		<description>Hi man, really cool article, thanks :)

Yuri</description>
		<content:encoded><![CDATA[<p>Hi man, really cool article, thanks <img src='http://www.search-this.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Yuri</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon Livengood</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-15296</link>
		<dc:creator>Brandon Livengood</dc:creator>
		<pubDate>Wed, 15 Aug 2007 12:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-15296</guid>
		<description>Nice article Paul.</description>
		<content:encoded><![CDATA[<p>Nice article Paul.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul OB</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-14905</link>
		<dc:creator>Paul OB</dc:creator>
		<pubDate>Fri, 10 Aug 2007 16:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-14905</guid>
		<description>Hi,

I&#039;m not quite sure what you mean by &quot;inherit one two and three together&quot; exactly but I&#039;ll have a guess at what you mean.

If you set an element with three classes and there are conflicts within the classes. e.g if as you say you set the background colour for all three different classes then the normal rules of the cascade will apply and classes later in the html get priority.

so if you said:

.one{color:red}
.two {color:blue}
.three{color:green}

...class=&quot;one two three&quot; - then the text will be green

.....class=&quot;two three one&quot; - then the text will be red.

Its just the normal rules of the cascade and where there are conflicts with elements of all the same weight then the class that comes later in the html has priority.

I hope that&#039;s what you were asking.:)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m not quite sure what you mean by &#8220;inherit one two and three together&#8221; exactly but I&#8217;ll have a guess at what you mean.</p>
<p>If you set an element with three classes and there are conflicts within the classes. e.g if as you say you set the background colour for all three different classes then the normal rules of the cascade will apply and classes later in the html get priority.</p>
<p>so if you said:</p>
<p>.one{color:red}<br />
.two {color:blue}<br />
.three{color:green}</p>
<p>&#8230;class=&#8221;one two three&#8221; &#8211; then the text will be green</p>
<p>&#8230;..class=&#8221;two three one&#8221; &#8211; then the text will be red.</p>
<p>Its just the normal rules of the cascade and where there are conflicts with elements of all the same weight then the class that comes later in the html has priority.</p>
<p>I hope that&#8217;s what you were asking.:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dotnetuncle - Interview Questions</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-14892</link>
		<dc:creator>dotnetuncle - Interview Questions</dc:creator>
		<pubDate>Fri, 10 Aug 2007 13:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-14892</guid>
		<description>Is it possible to inherit class two &amp; three &amp; one together? If yes, what will be the back color.
Cheers!</description>
		<content:encoded><![CDATA[<p>Is it possible to inherit class two &amp; three &amp; one together? If yes, what will be the back color.<br />
Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CSS The Star Matrix Pre-loaded</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-6041</link>
		<dc:creator>CSS The Star Matrix Pre-loaded</dc:creator>
		<pubDate>Wed, 23 May 2007 12:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-6041</guid>
		<description>[...] (onestar) is the default rating. (If you haven&#039;t come across multiple classes before then read this article which explains them in detail.) The onestar class could be changed to another classname to reflect [...]</description>
		<content:encoded><![CDATA[<p>[...] (onestar) is the default rating. (If you haven&#8217;t come across multiple classes before then read this article which explains them in detail.) The onestar class could be changed to another classname to reflect [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sherwin Techico</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-4331</link>
		<dc:creator>Sherwin Techico</dc:creator>
		<pubDate>Fri, 04 May 2007 08:17:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-4331</guid>
		<description>Thanks Paul (again) for the pointer/URL. I&#039;ll be sure to take a look at it in the AM.</description>
		<content:encoded><![CDATA[<p>Thanks Paul (again) for the pointer/URL. I&#8217;ll be sure to take a look at it in the AM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul OB</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-4281</link>
		<dc:creator>Paul OB</dc:creator>
		<pubDate>Thu, 03 May 2007 09:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-4281</guid>
		<description>Hi Sherwin,

Thanks for the comments.

As you know JS isn&#039;t my area but I wonder if Dean Edwards ie7 script doesn&#039;t already address these issues.

http://dean.edwards.name/IE7/compatibility/

Haven&#039;t had time to check at the moment :)</description>
		<content:encoded><![CDATA[<p>Hi Sherwin,</p>
<p>Thanks for the comments.</p>
<p>As you know JS isn&#8217;t my area but I wonder if Dean Edwards ie7 script doesn&#8217;t already address these issues.</p>
<p><a href="http://dean.edwards.name/IE7/compatibility/" rel="nofollow">http://dean.edwards.name/IE7/compatibility/</a></p>
<p>Haven&#8217;t had time to check at the moment <img src='http://www.search-this.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sherwin Techico</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-4270</link>
		<dc:creator>Sherwin Techico</dc:creator>
		<pubDate>Thu, 03 May 2007 03:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-4270</guid>
		<description>Great write-up Paul. I knew this place is special as soon as I recognized that ever-so-special SN &quot;Paul OB&quot; of SPF =)

Meanwhile, any work arounds for JS to suppose these as in obj.className? That would be a great find indeed.</description>
		<content:encoded><![CDATA[<p>Great write-up Paul. I knew this place is special as soon as I recognized that ever-so-special SN &#8220;Paul OB&#8221; of SPF =)</p>
<p>Meanwhile, any work arounds for JS to suppose these as in obj.className? That would be a great find indeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Golgotha</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-3502</link>
		<dc:creator>Golgotha</dc:creator>
		<pubDate>Fri, 27 Apr 2007 14:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-3502</guid>
		<description>Yep, Paul is innocent! I cut that out of his article :)</description>
		<content:encoded><![CDATA[<p>Yep, Paul is innocent! I cut that out of his article <img src='http://www.search-this.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul OB</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-3496</link>
		<dc:creator>Paul OB</dc:creator>
		<pubDate>Fri, 27 Apr 2007 14:18:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-3496</guid>
		<description>Hi Trovster thanks for your comments.

I think you missed the point as the first example is not a list of links but an example of a four column layout as shown in the very last full demonstration. The first example was just a set up for the final demo. Therefore the example I gave is correct for its intended purpose.

Also thanks for pointing out the dot.notation addressing of classes which was in my article but seems to have been cut out of the edit in error. I will reproduce it below until the editor replaces it above :)

Paul
----------------------------------------
Without wishing to confuse too much
            there is another technique of targetting these classes as follows (but there is a drawback so read on).

.fl.four.last {color:orange}

(Note that in the css there are no spaces between the selectors). The above would style .last only if the element contained the classes of .fl and .four as well (although they could be in any order and not just as shown e.g. &lt;div class=&quot;four fl last&quot;&gt;). However this technique is seldom used because IE6 and under have a bug and only recognise the
            last selector when addressed this way and would style .last regardless. Therefore I would advise against this method of addressing the classes for the time being and use the simpler method of targeting as used in the main demo.
---------------------------------</description>
		<content:encoded><![CDATA[<p>Hi Trovster thanks for your comments.</p>
<p>I think you missed the point as the first example is not a list of links but an example of a four column layout as shown in the very last full demonstration. The first example was just a set up for the final demo. Therefore the example I gave is correct for its intended purpose.</p>
<p>Also thanks for pointing out the dot.notation addressing of classes which was in my article but seems to have been cut out of the edit in error. I will reproduce it below until the editor replaces it above <img src='http://www.search-this.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Paul<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Without wishing to confuse too much<br />
            there is another technique of targetting these classes as follows (but there is a drawback so read on).</p>
<p>.fl.four.last {color:orange}</p>
<p>(Note that in the css there are no spaces between the selectors). The above would style .last only if the element contained the classes of .fl and .four as well (although they could be in any order and not just as shown e.g. &lt;div class=&quot;four fl last&quot;&gt;). However this technique is seldom used because IE6 and under have a bug and only recognise the<br />
            last selector when addressed this way and would style .last regardless. Therefore I would advise against this method of addressing the classes for the time being and use the simpler method of targeting as used in the main demo.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trovster</title>
		<link>http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/comment-page-1/#comment-3444</link>
		<dc:creator>trovster</dc:creator>
		<pubDate>Fri, 27 Apr 2007 08:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/2007/04/25/optimize-your-css-with-multi-class-elements/#comment-3444</guid>
		<description>It&#039;s always good to tell people about little things in HTML/CSS which they might miss. But you&#039;ve got some issues in these examples.

Your first example should be a list of links. No point using multiple classes if you&#039;ve got unsemantic mark-up.

I use multiple classes on my lists very often. I add a class of &#039;f&#039; and &#039;l&#039; to the first and last list-items, respectively, for :first-child &amp; :last-child emulation in Internet Explorer. I also add a class of &#039;odd&#039; so I can do stripey tables/lists with ease. So often I end up with class=&quot;f odd&quot;.

Also, I should mention, selecting multiple classes in IE can give some unexpected results. For example .red.blue {color: purple;} IE will apply that to any element with JUST the blue class. The rule is, with multiple class CSS selectors, IE will apply the selector to an element with the last class.</description>
		<content:encoded><![CDATA[<p>It&#8217;s always good to tell people about little things in HTML/CSS which they might miss. But you&#8217;ve got some issues in these examples.</p>
<p>Your first example should be a list of links. No point using multiple classes if you&#8217;ve got unsemantic mark-up.</p>
<p>I use multiple classes on my lists very often. I add a class of &#8216;f&#8217; and &#8216;l&#8217; to the first and last list-items, respectively, for :first-child &amp; :last-child emulation in Internet Explorer. I also add a class of &#8216;odd&#8217; so I can do stripey tables/lists with ease. So often I end up with class=&#8221;f odd&#8221;.</p>
<p>Also, I should mention, selecting multiple classes in IE can give some unexpected results. For example .red.blue {color: purple;} IE will apply that to any element with JUST the blue class. The rule is, with multiple class CSS selectors, IE will apply the selector to an element with the last class.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
