<?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: Avoid Using Generic CSS Classes</title>
	<atom:link href="http://www.devlounge.net/column/avoid-using-generic-css-classes/feed" rel="self" type="application/rss+xml" />
	<link>http://www.devlounge.net/column/avoid-using-generic-css-classes</link>
	<description>Design, Develop, and Grow</description>
	<lastBuildDate>Mon, 15 Mar 2010 09:43:07 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Leon Paternoster</title>
		<link>http://www.devlounge.net/column/avoid-using-generic-css-classes/comment-page-1#comment-178607</link>
		<dc:creator>Leon Paternoster</dc:creator>
		<pubDate>Sun, 22 Mar 2009 21:07:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=2433#comment-178607</guid>
		<description>Hi Dustin,

I &lt;em&gt;used&lt;/em&gt; to think like this. However, I now think classes have absolutely no semantic value except to someone reading the &lt;acronym title=&quot;HyperText Markup Language&quot;&gt;HTML&lt;/acronym&gt;. The only elements that aid a document&#039;s meaning are tags. So it really doesn&#039;t matter if you use &lt;code&gt;class=&quot;clear no-margin 2-col&quot;&lt;/code&gt; or &lt;code&gt;class=&quot;aside&quot;&lt;/code&gt;, as long as you&#039;re using the correct tag (and if you are using lots of DIVs for &#039;hooking&#039; purposes, your tags between the DIVs are meaningful).

That&#039;s why HTML5 is so promising: we get lots more meaningful tags, such as &lt;code&gt;aside&lt;/code&gt; and &lt;code&gt;section&lt;/code&gt;, which should mean less DIVs.</description>
		<content:encoded><![CDATA[<p>Hi Dustin,</p>
<p>I <em>used</em> to think like this. However, I now think classes have absolutely no semantic value except to someone reading the <acronym title="HyperText Markup Language">HTML</acronym>. The only elements that aid a document&#8217;s meaning are tags. So it really doesn&#8217;t matter if you use <code>class="clear no-margin 2-col"</code> or <code>class="aside"</code>, as long as you&#8217;re using the correct tag (and if you are using lots of DIVs for &#8216;hooking&#8217; purposes, your tags between the DIVs are meaningful).</p>
<p>That&#8217;s why HTML5 is so promising: we get lots more meaningful tags, such as <code>aside</code> and <code>section</code>, which should mean less DIVs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tj mapes &#187; Blog Archive &#187; What I&#8217;m Reading (weekly)</title>
		<link>http://www.devlounge.net/column/avoid-using-generic-css-classes/comment-page-1#comment-178092</link>
		<dc:creator>tj mapes &#187; Blog Archive &#187; What I&#8217;m Reading (weekly)</dc:creator>
		<pubDate>Sun, 08 Feb 2009 12:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=2433#comment-178092</guid>
		<description>[...] Avoid Using Generic CSS Classes &#124; Devlounge [...]</description>
		<content:encoded><![CDATA[<p>[...] Avoid Using Generic CSS Classes | Devlounge [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://www.devlounge.net/column/avoid-using-generic-css-classes/comment-page-1#comment-178040</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Wed, 04 Feb 2009 15:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=2433#comment-178040</guid>
		<description>Actually,  on most of my websites I try to use only two or three letter names for classes, simply for identification. What floats left today may be floating right tomorrow. I do not want to run into redesign-trouble.</description>
		<content:encoded><![CDATA[<p>Actually,  on most of my websites I try to use only two or three letter names for classes, simply for identification. What floats left today may be floating right tomorrow. I do not want to run into redesign-trouble.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markup debates: rank priorities, code accordingly &#124; Wisdump</title>
		<link>http://www.devlounge.net/column/avoid-using-generic-css-classes/comment-page-1#comment-178024</link>
		<dc:creator>Markup debates: rank priorities, code accordingly &#124; Wisdump</dc:creator>
		<pubDate>Tue, 03 Feb 2009 06:43:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=2433#comment-178024</guid>
		<description>[...] h1 Debate reminds me of a recent post at Devlounge that condemns generic CSS classes. Sure separation of content and presentation is supposed to make webpages more efficient and [...]</description>
		<content:encoded><![CDATA[<p>[...] h1 Debate reminds me of a recent post at Devlounge that condemns generic CSS classes. Sure separation of content and presentation is supposed to make webpages more efficient and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NM</title>
		<link>http://www.devlounge.net/column/avoid-using-generic-css-classes/comment-page-1#comment-178019</link>
		<dc:creator>NM</dc:creator>
		<pubDate>Mon, 02 Feb 2009 21:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=2433#comment-178019</guid>
		<description>Take a step back, and look at what you&#039;ve written. You&#039;ve described schizophrenia. First HTML contained ‹center›, ‹b›, ‹i› ... then it&#039;s supposed to be outside of its scope. This is IMO an indication that something&#039;s wrong here. ‹strong› or ‹em› is not much more abstract than ‹b› or ‹i›, merely more obtuse. Besides, italics do not always denote emphasis.
Finally HTML is designed to make describe &lt;i&gt;documents&lt;/i&gt;, but in reality, it&#039;s mostly used to program &lt;i&gt;interfaces&lt;/i&gt;. Just look at this page; look at the top, the right column and the bottom part: it&#039;s interface. The document is less than half of the content.</description>
		<content:encoded><![CDATA[<p>Take a step back, and look at what you&#8217;ve written. You&#8217;ve described schizophrenia. First HTML contained ‹center›, ‹b›, ‹i› &#8230; then it&#8217;s supposed to be outside of its scope. This is IMO an indication that something&#8217;s wrong here. ‹strong› or ‹em› is not much more abstract than ‹b› or ‹i›, merely more obtuse. Besides, italics do not always denote emphasis.<br />
Finally HTML is designed to make describe <i>documents</i>, but in reality, it&#8217;s mostly used to program <i>interfaces</i>. Just look at this page; look at the top, the right column and the bottom part: it&#8217;s interface. The document is less than half of the content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin Boston</title>
		<link>http://www.devlounge.net/column/avoid-using-generic-css-classes/comment-page-1#comment-178014</link>
		<dc:creator>Dustin Boston</dc:creator>
		<pubDate>Mon, 02 Feb 2009 17:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=2433#comment-178014</guid>
		<description>@jaredmellentine -  That&#039;s a good point that the W3C wanted to emphasize CSS. I don&#039;t think it was the only reason. But good point.

@harry - Thanks for responding! What I meant was that you had to hard code something in the HTML in order to achieve the presentational effect.</description>
		<content:encoded><![CDATA[<p>@jaredmellentine &#8211;  That&#8217;s a good point that the W3C wanted to emphasize CSS. I don&#8217;t think it was the only reason. But good point.</p>
<p>@harry &#8211; Thanks for responding! What I meant was that you had to hard code something in the HTML in order to achieve the presentational effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaredmellentine</title>
		<link>http://www.devlounge.net/column/avoid-using-generic-css-classes/comment-page-1#comment-178013</link>
		<dc:creator>jaredmellentine</dc:creator>
		<pubDate>Mon, 02 Feb 2009 16:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=2433#comment-178013</guid>
		<description>Sure.  I can see your point, but I think there are some holes in it.  The reason the &lt;center&gt; tag and the align attribute have been deprecated is to emphasize CSS.  Maybe &quot;text-align: left;&quot; is too basic an example.  Here&#039;s a better one:

I setup helper classes with nearly every stylesheet I have.  They include: .fl/.fr (floats), .cl/.cr/.cb (clears), .m/.mt/.mr/.mb/.ml (margins - based on the design), .b (bold) and .l/.c/.r (text-aligns).  I guess it&#039;s a designer preference, but it&#039;s simple for me to create an element that clears and is floated left with a right margin (&quot;cb fl mr&quot;).  The code is condensed - especially when using Javascript - and easy to remember.

My process doesn&#039;t work for everyone because some people just can&#039;t remember what the classes stand for.  But it seems a little ridiculous to have a unique class for every element that needs to be styled.</description>
		<content:encoded><![CDATA[<p>Sure.  I can see your point, but I think there are some holes in it.  The reason the &lt;center&gt; tag and the align attribute have been deprecated is to emphasize CSS.  Maybe &#8220;text-align: left;&#8221; is too basic an example.  Here&#8217;s a better one:</p>
<p>I setup helper classes with nearly every stylesheet I have.  They include: .fl/.fr (floats), .cl/.cr/.cb (clears), .m/.mt/.mr/.mb/.ml (margins &#8211; based on the design), .b (bold) and .l/.c/.r (text-aligns).  I guess it&#8217;s a designer preference, but it&#8217;s simple for me to create an element that clears and is floated left with a right margin (&#8220;cb fl mr&#8221;).  The code is condensed &#8211; especially when using Javascript &#8211; and easy to remember.</p>
<p>My process doesn&#8217;t work for everyone because some people just can&#8217;t remember what the classes stand for.  But it seems a little ridiculous to have a unique class for every element that needs to be styled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weight Loss Blogs — Wp Point &#124; Wordpress Theme Viewer</title>
		<link>http://www.devlounge.net/column/avoid-using-generic-css-classes/comment-page-1#comment-178012</link>
		<dc:creator>Weight Loss Blogs — Wp Point &#124; Wordpress Theme Viewer</dc:creator>
		<pubDate>Mon, 02 Feb 2009 15:40:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=2433#comment-178012</guid>
		<description>[...] Avoid Using Generic CSS Classes &#124; Devlounge [...]</description>
		<content:encoded><![CDATA[<p>[...] Avoid Using Generic CSS Classes | Devlounge [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry Roberts</title>
		<link>http://www.devlounge.net/column/avoid-using-generic-css-classes/comment-page-1#comment-178009</link>
		<dc:creator>Harry Roberts</dc:creator>
		<pubDate>Mon, 02 Feb 2009 00:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=2433#comment-178009</guid>
		<description>Hmm;

&#039;Presentation is being controlled from within the markup.&#039;

I see your point, but that&#039;s a little incorrect. Presentation isn&#039;t being controlled in the same was as deprecated tags. It isn&#039;t being controlled though markup at all. The align etc attributes do control presentation through markup as they make presentational changes through markup *alone*. Applying a generic class name however provides a *hook* for CSS to alter the presentation. Two very separate things.

Your point(s) regarding semantics however are extremely valid and have prompted me to add additional note: http://csswizardry.com/web-design+/#css4-3-reactions

Cheers,
Harry</description>
		<content:encoded><![CDATA[<p>Hmm;</p>
<p>&#8216;Presentation is being controlled from within the markup.&#8217;</p>
<p>I see your point, but that&#8217;s a little incorrect. Presentation isn&#8217;t being controlled in the same was as deprecated tags. It isn&#8217;t being controlled though markup at all. The align etc attributes do control presentation through markup as they make presentational changes through markup *alone*. Applying a generic class name however provides a *hook* for CSS to alter the presentation. Two very separate things.</p>
<p>Your point(s) regarding semantics however are extremely valid and have prompted me to add additional note: <a href="http://csswizardry.com/web-design+/#css4-3-reactions" rel="nofollow">http://csswizardry.com/web-design+/#css4-3-reactions</a></p>
<p>Cheers,<br />
Harry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bram Van der Sype</title>
		<link>http://www.devlounge.net/column/avoid-using-generic-css-classes/comment-page-1#comment-178006</link>
		<dc:creator>Bram Van der Sype</dc:creator>
		<pubDate>Sun, 01 Feb 2009 22:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/?p=2433#comment-178006</guid>
		<description>Agreed, point made, but! What if you have a (semi-) complicated layout that needs several floated divs that require no additional styling except for different floating.

I could follow your point and name them all appropriate names, and then just put all those in my css file. Agreed, semantically, I can see why this is &quot;better&quot;.

But what about a &quot;clear&quot; class? When you have a lot of floats in a container, sometimes, all you need is a div to clear them. As far as I can see, there&#039;s no semantically correct way to name them, as all they have to do is &quot;clear&quot;. The stupid part is that we have to use those divs (or whatever element you prefer) to clear your floats, or your container won&#039;t like it much. Maybe the positioniseverything.com easy clearing way is the way to go (http://www.positioniseverything.net/easyclearing.html) however, I&#039;ve always disliked conditional comments for IE...</description>
		<content:encoded><![CDATA[<p>Agreed, point made, but! What if you have a (semi-) complicated layout that needs several floated divs that require no additional styling except for different floating.</p>
<p>I could follow your point and name them all appropriate names, and then just put all those in my css file. Agreed, semantically, I can see why this is &#8220;better&#8221;.</p>
<p>But what about a &#8220;clear&#8221; class? When you have a lot of floats in a container, sometimes, all you need is a div to clear them. As far as I can see, there&#8217;s no semantically correct way to name them, as all they have to do is &#8220;clear&#8221;. The stupid part is that we have to use those divs (or whatever element you prefer) to clear your floats, or your container won&#8217;t like it much. Maybe the positioniseverything.com easy clearing way is the way to go (<a href="http://www.positioniseverything.net/easyclearing.html" rel="nofollow">http://www.positioniseverything.net/easyclearing.html</a>) however, I&#8217;ve always disliked conditional comments for IE&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
