<?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: A Body with Class</title>
	<atom:link href="http://postpostmodern.com/instructional/a-body-with-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://postpostmodern.com/instructional/a-body-with-class/</link>
	<description>Speaking of web development.</description>
	<lastBuildDate>Tue, 17 Aug 2010 22:17:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: james</title>
		<link>http://postpostmodern.com/instructional/a-body-with-class/comment-page-1/#comment-1900</link>
		<dc:creator>james</dc:creator>
		<pubDate>Fri, 23 Oct 2009 04:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://postpostmodern.com/?p=228#comment-1900</guid>
		<description>using class tags on your body is pretty cool, and allows you to let css do the work for detecting current page styles on menu items.  A really lazy way so you dont have to do any server-side processing to add a class=&quot;current&quot; to menu items and can thus include a &quot;static&quot; tpl file with your main menu once.

&lt;code&gt;
.history a#history, .about a#about,  .faq a#faq {
background-color:pink; /* make the current page stand out */
}
&lt;/code&gt;

&lt;code&gt;


 &lt;a href=&quot;/about&quot; rel=&quot;nofollow&quot;&gt;about&lt;/a&gt;
 &lt;a href=&quot;/about/history&quot; rel=&quot;nofollow&quot;&gt;history&lt;/a&gt;
 &lt;a href=&quot;/faq&quot; rel=&quot;nofollow&quot;&gt;faq&lt;/a&gt;


&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>using class tags on your body is pretty cool, and allows you to let css do the work for detecting current page styles on menu items.  A really lazy way so you dont have to do any server-side processing to add a class=&#8221;current&#8221; to menu items and can thus include a &#8220;static&#8221; tpl file with your main menu once.</p>

<p><code>
.history a#history, .about a#about,  .faq a#faq {
background-color:pink; /* make the current page stand out */
}
</code></p>

<p><code></code></p>

<p><a href="/about" rel="nofollow">about</a>
 <a href="/about/history" rel="nofollow">history</a>
 <a href="/faq" rel="nofollow">faq</a></p>

<p></p>
]]></content:encoded>
	</item>
</channel>
</rss>
