<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<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">
	<channel>
		<title>Gravity Support Forums Topic: Background color of alternate rows</title>
		<link>https://legacy.forums.gravityhelp.com/topic/background-color-of-alternate-rows</link>
		<description>Gravity Support Forums Topic: Background color of alternate rows</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 17:18:34 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/background-color-of-alternate-rows" rel="self" type="application/rss+xml" />

		<item>
			<title>yannibmbr on "Background color of alternate rows"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/background-color-of-alternate-rows#post-20021</link>
			<pubDate>Sun, 06 Mar 2011 23:49:02 +0000</pubDate>
			<dc:creator>yannibmbr</dc:creator>
			<guid isPermaLink="false">20021@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey Kevin,&#60;br /&#62;
Thanks so much for the feedback. I wasn't able to implement your exact suggestion successfully, but it lead me to finding out how I could. I saw similar documentation on jquery.com and saw the following example:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;!DOCTYPE html&#38;gt;
&#38;lt;html&#38;gt;
&#38;lt;head&#38;gt;
  &#38;lt;style&#38;gt;

  table {
    background:#f3f7f5;
  }
  &#38;lt;/style&#38;gt;
  &#38;lt;script src=&#38;quot;http://code.jquery.com/jquery-1.5.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;/head&#38;gt;
&#38;lt;body&#38;gt;
  &#38;lt;table border=&#38;quot;1&#38;quot;&#38;gt;
    &#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;Row with Index #0&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;
    &#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;Row with Index #1&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;

    &#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;Row with Index #2&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;
    &#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;Row with Index #3&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;
  &#38;lt;/table&#38;gt;
&#38;lt;script&#38;gt;$(&#38;quot;tr:odd&#38;quot;).css(&#38;quot;background-color&#38;quot;, &#38;quot;#bbbbff&#38;quot;);&#38;lt;/script&#38;gt;

&#38;lt;/body&#38;gt;
&#38;lt;/html&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Background color of alternate rows"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/background-color-of-alternate-rows#post-20011</link>
			<pubDate>Sun, 06 Mar 2011 18:24:09 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">20011@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You'd need to use jQuery to dynamically add alternate row styles.. something like this added to your page template.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;jQuery(document).ready(function() {

	// add odd and even classes to table rows
	jQuery(&#38;#39;table tbody.user-list &#38;gt; tr:odd&#38;#39;).addClass(&#38;#39;oddrow&#38;#39;);
	jQuery(&#38;#39;table tbody.user-list &#38;gt; tr:even&#38;#39;).addClass(&#38;#39;evenrow&#38;#39;);

});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then add the new classes to your theme stylesheet&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;tr.oddrow {background-color:#fff}
tr.evenrow {background-color:#eee}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>yannibmbr on "Background color of alternate rows"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/background-color-of-alternate-rows#post-20007</link>
			<pubDate>Sun, 06 Mar 2011 16:00:21 +0000</pubDate>
			<dc:creator>yannibmbr</dc:creator>
			<guid isPermaLink="false">20007@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So I'm using gravity forms as a directory listing. I'd like to know how to style the directory output such that every other row is a different color. How would I accomplish that?&#60;/p&#62;
&#60;p&#62;Thanks.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://yoga.digisavvy.com/teachers-directory&#34; rel=&#34;nofollow&#34;&#62;http://yoga.digisavvy.com/teachers-directory&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
