<?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: Competent Classing</title>
	<atom:link href="http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/feed/" rel="self" type="application/rss+xml" />
	<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/</link>
	<description>Things that Eric A. Meyer, CSS expert, writes about on his personal Web site; it&#039;s largely Web standards and Web technology, but also various bits of culture, politics, personal observations, and other miscellaneous stuff</description>
	<lastBuildDate>Fri, 10 May 2013 11:50:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: OpenOn website </title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-477616</link>
		<dc:creator>OpenOn website </dc:creator>
		<pubDate>Wed, 23 Sep 2009 01:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-477616</guid>
		<description><![CDATA[[...] am again standing on the shoulders of giant&#8217;s regarding the markup, and in particular and keen to adopt Malarky&#8217;s conventions [...]]]></description>
		<content:encoded><![CDATA[<p>[...] am again standing on the shoulders of giant&#8217;s regarding the markup, and in particular and keen to adopt Malarky&#8217;s conventions [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny Hurlburt</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-468260</link>
		<dc:creator>Danny Hurlburt</dc:creator>
		<pubDate>Fri, 26 Jun 2009 20:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-468260</guid>
		<description><![CDATA[But don&#039;t you pay a performance penalty with &lt;code&gt;div.navlinks a&lt;/code&gt; as opposed to &lt;code&gt;div.navlinks a.navlink&lt;/code&gt;?

With the first selector, anytime the browser comes across an anchor element it has to march up the DOM to see if it is a descendant of a div.navlinks. A document may very likely contain dozens or even hundreds of anchor elements that are not a descendant of a div.navlinks. Each of these anchors incurs a performance penalty even though the selector does not match.

With the second selector, anytime the browser comes across an anchor element it simply needs to check if it has the class navlink. If it doesn&#039;t, then it can dismiss the CSS selector for this anchor.

See &lt;a href=&quot;http://code.google.com/speed/page-speed/docs/rendering.html&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/speed/page-speed/docs/rendering.html&lt;/a&gt; for details on using efficient CSS selectors.]]></description>
		<content:encoded><![CDATA[<p>But don&#8217;t you pay a performance penalty with <code>div.navlinks a</code> as opposed to <code>div.navlinks a.navlink</code>?</p>
<p>With the first selector, anytime the browser comes across an anchor element it has to march up the DOM to see if it is a descendant of a div.navlinks. A document may very likely contain dozens or even hundreds of anchor elements that are not a descendant of a div.navlinks. Each of these anchors incurs a performance penalty even though the selector does not match.</p>
<p>With the second selector, anytime the browser comes across an anchor element it simply needs to check if it has the class navlink. If it doesn&#8217;t, then it can dismiss the CSS selector for this anchor.</p>
<p>See <a href="http://code.google.com/speed/page-speed/docs/rendering.html" rel="nofollow">http://code.google.com/speed/page-speed/docs/rendering.html</a> for details on using efficient CSS selectors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnaud Meuret</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-453843</link>
		<dc:creator>Arnaud Meuret</dc:creator>
		<pubDate>Tue, 07 Apr 2009 10:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-453843</guid>
		<description><![CDATA[Hum, sorry to have to break the mighty 42 number of comments, but I think you should really get rid of the weird phrasings:

 &lt;b&gt;-&lt;/b&gt; &quot;space-separated words in your class values&quot; : gramatically correct but VERY misleading
 &lt;b&gt;-&lt;/b&gt; &quot;Multiple-word class names&quot; : utterly &lt;b&gt;wrong&lt;/b&gt; ! These are multiple class names.

It really looks like you did not understand the mechanism altogether.

&lt;b&gt;An element can be assigned multiple classes.&lt;/b&gt; Period. No fuzzy magic involved.

Make no mistake, I find your taking time to share your discoveries very valuable, I am doing by best to do it myself. Keep going.]]></description>
		<content:encoded><![CDATA[<p>Hum, sorry to have to break the mighty 42 number of comments, but I think you should really get rid of the weird phrasings:</p>
<p> <b>-</b> &#8220;space-separated words in your class values&#8221; : gramatically correct but VERY misleading<br />
 <b>-</b> &#8220;Multiple-word class names&#8221; : utterly <b>wrong</b> ! These are multiple class names.</p>
<p>It really looks like you did not understand the mechanism altogether.</p>
<p><b>An element can be assigned multiple classes.</b> Period. No fuzzy magic involved.</p>
<p>Make no mistake, I find your taking time to share your discoveries very valuable, I am doing by best to do it myself. Keep going.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Add Microformats Magic to your Site&#160;&#124;&#160;Vitamin</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-435734</link>
		<dc:creator>Add Microformats Magic to your Site&#160;&#124;&#160;Vitamin</dc:creator>
		<pubDate>Sun, 11 Jan 2009 08:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-435734</guid>
		<description><![CDATA[[...] Competent Classing, by Eric Meyer [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Competent Classing, by Eric Meyer [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SJ</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-401857</link>
		<dc:creator>SJ</dc:creator>
		<pubDate>Wed, 20 Aug 2008 10:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-401857</guid>
		<description><![CDATA[for the above post 
/div class&quot;w120 h120 fleft&quot;&gt; Vs &lt;div class&quot;blockA&quot;/]]></description>
		<content:encoded><![CDATA[<p>for the above post<br />
/div class&#8221;w120 h120 fleft&#8221;&gt; Vs &lt;div class&#8221;blockA&#8221;/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SJ</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-401856</link>
		<dc:creator>SJ</dc:creator>
		<pubDate>Wed, 20 Aug 2008 10:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-401856</guid>
		<description><![CDATA[Does multiple class pose any performance issue Vs a single class used to define a Block, 

 Vs 

where in four are in single CSS File, so the server request is 1 only.

.w120{width:120px;} 
.h120{height:120px;} 
.fleft{float:left;}

.blockA={width:120px;height:120px;float:left;}]]></description>
		<content:encoded><![CDATA[<p>Does multiple class pose any performance issue Vs a single class used to define a Block, </p>
<p> Vs </p>
<p>where in four are in single CSS File, so the server request is 1 only.</p>
<p>.w120{width:120px;}<br />
.h120{height:120px;}<br />
.fleft{float:left;}</p>
<p>.blockA={width:120px;height:120px;float:left;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Meyer</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-372865</link>
		<dc:creator>Eric Meyer</dc:creator>
		<pubDate>Wed, 07 May 2008 11:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-372865</guid>
		<description><![CDATA[Ah!  Thank you, &lt;a href=&quot;http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-372845&quot; rel=&quot;nofollow&quot;&gt;David&lt;/a&gt;, for clearing that up.

Of course, it&#039;s been almost four years now since the original post, so I don&#039;t recall the original project constraints---there may have been some reason that a list wasn&#039;t acceptable in those circumstances.  Doing things the list way is certainly a fine way to go; I&#039;ve done it myself many a time.  Doing the links as bar-separated text also works, of course, though it doesn&#039;t offer nearly the same level of styling flexibility.]]></description>
		<content:encoded><![CDATA[<p>Ah!  Thank you, <a href="http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-372845" rel="nofollow">David</a>, for clearing that up.</p>
<p>Of course, it&#8217;s been almost four years now since the original post, so I don&#8217;t recall the original project constraints&#8212;there may have been some reason that a list wasn&#8217;t acceptable in those circumstances.  Doing things the list way is certainly a fine way to go; I&#8217;ve done it myself many a time.  Doing the links as bar-separated text also works, of course, though it doesn&#8217;t offer nearly the same level of styling flexibility.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Foster</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-372845</link>
		<dc:creator>David Foster</dc:creator>
		<pubDate>Wed, 07 May 2008 10:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-372845</guid>
		<description><![CDATA[I believe &lt;a href=&quot;http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-38830&quot; rel=&quot;nofollow&quot;&gt;Milos is asking&lt;/a&gt; why you use the vertical bar character in your list of links. In fact, when I&#039;d seen that, I wanted to ask the same question.

I would have done something like this:
&lt;code&gt;
&lt;ul class=&quot;navLinks&quot;&gt;
&lt;li&gt;&lt;a href=&quot;blah01&quot;&gt;Blah01&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;blah02&quot;&gt;Blah02&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;blah03&quot;&gt;Blah03&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;blah04&quot;&gt;Blah04&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;last&quot;&gt;&lt;a href=&quot;blah05&quot;&gt;Blah05&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/code&gt;

I&#039;d then apply a border-right to all li tags except the last (accessible by the &#039;last&#039; class)]]></description>
		<content:encoded><![CDATA[<p>I believe <a href="http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-38830" rel="nofollow">Milos is asking</a> why you use the vertical bar character in your list of links. In fact, when I&#8217;d seen that, I wanted to ask the same question.</p>
<p>I would have done something like this:<br />
<code><br />
&lt;ul class="navLinks"&gt;<br />
&lt;li&gt;&lt;a href="blah01"&gt;Blah01&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="blah02"&gt;Blah02&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="blah03"&gt;Blah03&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="blah04"&gt;Blah04&lt;/a&gt;&lt;/li&gt;<br />
&lt;li class="last"&gt;&lt;a href="blah05"&gt;Blah05&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
</code></p>
<p>I&#8217;d then apply a border-right to all li tags except the last (accessible by the &#8216;last&#8217; class)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Meyer</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-319420</link>
		<dc:creator>Eric Meyer</dc:creator>
		<pubDate>Wed, 13 Feb 2008 03:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-319420</guid>
		<description><![CDATA[Exactly so, &lt;a href=&quot;http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-319419&quot; rel=&quot;nofollow&quot;&gt;Evan&lt;/a&gt;!   I&#039;ve updated the post to fix that very embarrassing error.  Thanks for bringing it to my attention.

Funny that nobody else noticed or mentioned that in the 3.5 years since I wrote the post.  Well, that&#039;s why I leave comments open indefinitely!]]></description>
		<content:encoded><![CDATA[<p>Exactly so, <a href="http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-319419" rel="nofollow">Evan</a>!   I&#8217;ve updated the post to fix that very embarrassing error.  Thanks for bringing it to my attention.</p>
<p>Funny that nobody else noticed or mentioned that in the 3.5 years since I wrote the post.  Well, that&#8217;s why I leave comments open indefinitely!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Prodromou</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-319419</link>
		<dc:creator>Evan Prodromou</dc:creator>
		<pubDate>Wed, 13 Feb 2008 02:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-319419</guid>
		<description><![CDATA[You say, &lt;i&gt;That way, you can style all menus consistently via the menu class, while having the menu ID there for any &quot;Utilities&quot;-specific styling you need to do.&lt;/i&gt; I think you mean &lt;i&gt;the utilities ID&lt;/i&gt;.]]></description>
		<content:encoded><![CDATA[<p>You say, <i>That way, you can style all menus consistently via the menu class, while having the menu ID there for any &#8220;Utilities&#8221;-specific styling you need to do.</i> I think you mean <i>the utilities ID</i>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Mabbett</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-227065</link>
		<dc:creator>Andy Mabbett</dc:creator>
		<pubDate>Thu, 30 Aug 2007 10:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-227065</guid>
		<description><![CDATA[The example &lt;td class=&quot;subtotal&quot;&gt;&lt;span class=&quot;negative&quot;&gt; is perhaps best substituted by &lt;td class=&quot;vcard&quot;&gt;&lt;span class=&quot;fn&quot;&gt; - as used in microformats, which require classes on nested elements.]]></description>
		<content:encoded><![CDATA[<p>The example &lt;td class=&#8221;subtotal&#8221;&gt;&lt;span class=&#8221;negative&#8221;&gt; is perhaps best substituted by &lt;td class=&#8221;vcard&#8221;&gt;&lt;span class=&#8221;fn&#8221;&gt; &#8211; as used in microformats, which require classes on nested elements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy Vogel</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-151442</link>
		<dc:creator>Randy Vogel</dc:creator>
		<pubDate>Thu, 10 May 2007 21:57:37 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-151442</guid>
		<description><![CDATA[Hey now Eric!

Your example of the presentation of a negative number subtotal,
(-$422.72)
seems to overlook the fact that the use of red (via CSS) obviates the need for parentheses and minus sign.
That is, parentheses are an old-fashioned accountant&#039;s method for indicating a negative quantity (when numbers must be black), while the minus sign is the traditional mathematician&#039;s method for doing the same.

To repeat the point another way, parens OR the minus sign OR red type all indicate individually that a number is negative. It&#039;s odd to use more than one of these methods simultaneously.]]></description>
		<content:encoded><![CDATA[<p>Hey now Eric!</p>
<p>Your example of the presentation of a negative number subtotal,<br />
(-$422.72)<br />
seems to overlook the fact that the use of red (via CSS) obviates the need for parentheses and minus sign.<br />
That is, parentheses are an old-fashioned accountant&#8217;s method for indicating a negative quantity (when numbers must be black), while the minus sign is the traditional mathematician&#8217;s method for doing the same.</p>
<p>To repeat the point another way, parens OR the minus sign OR red type all indicate individually that a number is negative. It&#8217;s odd to use more than one of these methods simultaneously.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-117585</link>
		<dc:creator>Sven</dc:creator>
		<pubDate>Tue, 27 Mar 2007 07:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-117585</guid>
		<description><![CDATA[Hi Eric,

verry good CSS coding. Thanks for the tipp.
Greeting from Germany
Sven Fischer]]></description>
		<content:encoded><![CDATA[<p>Hi Eric,</p>
<p>verry good CSS coding. Thanks for the tipp.<br />
Greeting from Germany<br />
Sven Fischer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Use or abuse of class? at microformatique - a blog about microformats and &#8220;data at the edges&#8221;</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-44767</link>
		<dc:creator>Use or abuse of class? at microformatique - a blog about microformats and &#8220;data at the edges&#8221;</dc:creator>
		<pubDate>Sat, 26 Aug 2006 10:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-44767</guid>
		<description><![CDATA[[...] Competent Classing, by Eric Meyer [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Competent Classing, by Eric Meyer [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitamin Features &#187; Add microformats magic to your site</title>
		<link>http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-44508</link>
		<dc:creator>Vitamin Features &#187; Add microformats magic to your site</dc:creator>
		<pubDate>Fri, 25 Aug 2006 14:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/07/18/competent-classing/#comment-44508</guid>
		<description><![CDATA[[...] Competent Classing, by Eric Meyer [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Competent Classing, by Eric Meyer [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->