<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
 <generator>http://textpattern.com/</generator>
 <title>Textpattern Tips – Apply a style to every third article in a list </title>
 <description>Apply a style to every third article in a list  - comments</description>
 <link>https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list</link>
 <atom:link href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list?f=comment-feed" rel="self" type="application/rss+xml" />
 <pubDate>Tue, 24 Jul 12 19:09:14 +0000</pubDate>

 <item>
     <title>Comment on Apply a style to every third article in a list  by Jeff Soo</title>
     <link><a href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list#c000545" id="c000545">1</a></link>
     <guid><a href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list#c000545" id="c000545">1</a></guid>
     <pubDate>Thu, 24 Sep 09 20:40:35 +0000</pubDate>
     <description><![CDATA[<p>The venerable <a href="http://thresholdstate.com/software/3707/zemnth" rel="nofollow">zem_nth</a> still works, and gives a single-plugin solution to this problem. This would work:</p><pre>&lt;txp:article wraptag="ul" sort="Posted asc"&gt;
	&lt;txp:zem_nth step="3" of="3"&gt;
		&lt;li class="red"&gt;&lt;txp:title /&gt;&lt;/li&gt;
	&lt;/txp:zem_nth&gt;
	&lt;txp:zem_nth step="1-2" of="3"&gt;
		&lt;li&gt;&lt;txp:title /&gt;&lt;/li&gt;
	&lt;/txp:zem_nth&gt;
&lt;/txp:article&gt;
</pre><p>Same thing more concisely:</p><pre>&lt;txp:article wraptag="ul" sort="Posted asc"&gt;
	&lt;li&lt;txp:zem_nth step="3" of="3"&gt; class="red"&gt;&lt;/txp:zem_nth&gt;&gt;&lt;txp:title /&gt;&lt;/li&gt;
&lt;/txp:article&gt;
</pre>]]></description>
     <content:encoded><![CDATA[<p>The venerable <a href="http://thresholdstate.com/software/3707/zemnth" rel="nofollow">zem_nth</a> still works, and gives a single-plugin solution to this problem. This would work:</p><pre>&lt;txp:article wraptag="ul" sort="Posted asc"&gt;
	&lt;txp:zem_nth step="3" of="3"&gt;
		&lt;li class="red"&gt;&lt;txp:title /&gt;&lt;/li&gt;
	&lt;/txp:zem_nth&gt;
	&lt;txp:zem_nth step="1-2" of="3"&gt;
		&lt;li&gt;&lt;txp:title /&gt;&lt;/li&gt;
	&lt;/txp:zem_nth&gt;
&lt;/txp:article&gt;
</pre><p>Same thing more concisely:</p><pre>&lt;txp:article wraptag="ul" sort="Posted asc"&gt;
	&lt;li&lt;txp:zem_nth step="3" of="3"&gt; class="red"&gt;&lt;/txp:zem_nth&gt;&gt;&lt;txp:title /&gt;&lt;/li&gt;
&lt;/txp:article&gt;
</pre>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://ipsedixit.net/">Jeff Soo</a></dc:creator>
 
</item>
<item>
     <title>Comment on Apply a style to every third article in a list  by Craig</title>
     <link><a href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list#c000575" id="c000575">1</a></link>
     <guid><a href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list#c000575" id="c000575">1</a></guid>
     <pubDate>Fri, 30 Oct 09 01:55:53 +0000</pubDate>
     <description><![CDATA[<p>The problem with zem_nth is that is does not scale well. If you try to use two different calls to zem_nth on the same page you will run into problems. It&#8217;d be great if you could add an &#8220;id&#8221; so the counter would stay within a certain scope.</p><p>In almost all situations I end up using txp:variable and a ton of extra code because of zem_nth&#8217;s issues.</p>]]></description>
     <content:encoded><![CDATA[<p>The problem with zem_nth is that is does not scale well. If you try to use two different calls to zem_nth on the same page you will run into problems. It&#8217;d be great if you could add an &#8220;id&#8221; so the counter would stay within a certain scope.</p><p>In almost all situations I end up using txp:variable and a ton of extra code because of zem_nth&#8217;s issues.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://qrayg.com">Craig</a></dc:creator>
 
</item>
<item>
     <title>Comment on Apply a style to every third article in a list  by Rich</title>
     <link><a href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list#c000618" id="c000618">1</a></link>
     <guid><a href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list#c000618" id="c000618">1</a></guid>
     <pubDate>Wed, 09 Dec 09 14:41:23 +0000</pubDate>
     <description><![CDATA[<p>Excellent, just what I needed.</p><p>You also need adi_calc plugin though, which the article doesn&#8217;t mention.</p>]]></description>
     <content:encoded><![CDATA[<p>Excellent, just what I needed.</p><p>You also need adi_calc plugin though, which the article doesn&#8217;t mention.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://www.richardjkeys.co.uk">Rich</a></dc:creator>
 
</item>
<item>
     <title>Comment on Apply a style to every third article in a list  by Jonathan Stubbs</title>
     <link><a href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list#c000620" id="c000620">1</a></link>
     <guid><a href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list#c000620" id="c000620">1</a></guid>
     <pubDate>Thu, 10 Dec 09 05:58:52 +0000</pubDate>
     <description><![CDATA[<p>Thanks a lot Richard for spotting the error. I have corrected the article to add <a href="https://textpattern.org/plugins/1067/adi_calc" rel="nofollow">adi_calc</a>.</p>]]></description>
     <content:encoded><![CDATA[<p>Thanks a lot Richard for spotting the error. I have corrected the article to add <a href="https://textpattern.org/plugins/1067/adi_calc" rel="nofollow">adi_calc</a>.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://jonathanstubbs.com">Jonathan Stubbs</a></dc:creator>
 
</item>
<item>
     <title>Comment on Apply a style to every third article in a list  by Adida</title>
     <link><a href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list#c001125" id="c001125">1</a></link>
     <guid><a href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list#c001125" id="c001125">1</a></guid>
     <pubDate>Sat, 14 Jul 12 10:26:44 +0000</pubDate>
     <description><![CDATA[<p>A great tip! I use  zem_nth  for a grid design though. Jsoo is right, it still works perfectly for <span class="caps">TXP</span> 4.4.1!</p>]]></description>
     <content:encoded><![CDATA[<p>A great tip! I use  zem_nth  for a grid design though. Jsoo is right, it still works perfectly for <span class="caps">TXP</span> 4.4.1!</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://buddha.by">Adida</a></dc:creator>
 
</item>
<item>
     <title>Comment on Apply a style to every third article in a list  by etc</title>
     <link><a href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list#c001130" id="c001130">1</a></link>
     <guid><a href="https://textpattern.tips/apply-a-style-to-every-third-article-in-a-list#c001130" id="c001130">1</a></guid>
     <pubDate>Tue, 24 Jul 12 19:09:14 +0000</pubDate>
     <description><![CDATA[<p><code>:nth-of-type(3n)</code> css selector works perfectly too nowadays.</p>]]></description>
     <content:encoded><![CDATA[<p><code>:nth-of-type(3n)</code> css selector works perfectly too nowadays.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://www.iut-fbleau.fr/projet/etc/">etc</a></dc:creator>
 
</item>

</channel>
</rss>