From mboxrd@z Thu Jan  1 00:00:00 1970
From: Xin Shi <shixin111@gmail.com>
Subject: Alternate Table Row Colors
Date: Sun, 14 Jun 2009 15:00:15 -0400
Message-ID: <5236d6f90906141200p3f0d21bbxa34d9946c9508b1b@mail.gmail.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0019088769=="
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1MFuwI-000602-KY
	for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:00:22 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1MFuwE-0005zp-3r
	for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:00:22 -0400
Received: from [199.232.76.173] (port=38608 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1MFuwD-0005zm-Tl
	for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:00:17 -0400
Received: from mail-bw0-f227.google.com ([209.85.218.227]:59876)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <shixin111@gmail.com>) id 1MFuwD-0003in-Dd
	for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:00:17 -0400
Received: by bwz27 with SMTP id 27so658778bwz.42
	for <emacs-orgmode@gnu.org>; Sun, 14 Jun 2009 12:00:15 -0700 (PDT)
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: emacs-orgmode@gnu.org

--===============0019088769==
Content-Type: multipart/alternative; boundary=001636417e194f9a79046c538de0

--001636417e194f9a79046c538de0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hello Experts,

I use org-mode to produce a lot of big tables with numbers in them. When I
present these tables by HTML, I found it's hard to keep track which row it
is. I'm wondering if it's possible to implement additional class attribute
to the <tr>, such as:


<table class="sample">
<tr class="d0"><td>One</td><td>Fish</td></tr>
<tr class="d1"><td>Two</td><td>Fish</td></tr>
<tr class="d0"><td>Red</td><td>Fish</td></tr>
<tr class="d1"><td>Blue</td><td>Fish</td></tr>
</table>

So, that in the CSS file, it'll be easier to implement the color:

<style type="text/css">
table.sample {
	border: 6px inset #8B8378;
	-moz-border-radius: 6px;
}
table.sample td {
	border: 1px solid black;
	padding: 0.2em 2ex 0.2em 2ex;
	color: black;
}
table.sample tr.d0 td {
	background-color: #FCF6CF;
}
table.sample tr.d1 td {
	background-color: #FEFEF2;
}
</style>

I borrowed idea from this article:
http://www.somacon.com/p338.php

Thanks!

Xin

--001636417e194f9a79046c538de0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<span class=3D"noprint">Hello Experts,<br><br>I use org-mode to produce a l=
ot of big tables with numbers in them. When I present these tables by HTML,=
 I found it&#39;s hard to keep track which row it is. I&#39;m wondering if =
it&#39;s possible to implement additional class attribute to the &lt;tr&gt;=
, such as: <br>
=A0</span><br><pre><code>&lt;table class=3D&quot;sample&quot;&gt;<br>&lt;tr=
 class=3D&quot;d0&quot;&gt;&lt;td&gt;One&lt;/td&gt;&lt;td&gt;Fish&lt;/td&gt=
;&lt;/tr&gt;<br>&lt;tr class=3D&quot;d1&quot;&gt;&lt;td&gt;Two&lt;/td&gt;&l=
t;td&gt;Fish&lt;/td&gt;&lt;/tr&gt;<br>
&lt;tr class=3D&quot;d0&quot;&gt;&lt;td&gt;Red&lt;/td&gt;&lt;td&gt;Fish&lt;=
/td&gt;&lt;/tr&gt;<br>&lt;tr class=3D&quot;d1&quot;&gt;&lt;td&gt;Blue&lt;/t=
d&gt;&lt;td&gt;Fish&lt;/td&gt;&lt;/tr&gt;<br>&lt;/table&gt;<br><br>So, that=
 in the CSS file, it&#39;ll be easier to implement the color:<br>
<br></code><code>&lt;style type=3D&quot;text/css&quot;&gt;<br>table.sample =
{<br>	border: 6px inset #8B8378;<br>	-moz-border-radius: 6px;<br>}<br>table=
.sample td {<br>	border: 1px solid black;<br>	padding: 0.2em 2ex 0.2em 2ex;=
<br>
	color: black;<br>}<br>table.sample tr.d0 td {<br>	background-color: #FCF6C=
F;<br>}<br>table.sample tr.d1 td {<br>	background-color: #FEFEF2;<br>}<br>&=
lt;/style&gt;<br><br>I borrowed idea from this article:<br><a href=3D"http:=
//www.somacon.com/p338.php">http://www.somacon.com/p338.php</a><br>
<br>Thanks!<br><br>Xin<br><br></code><br></pre>

--001636417e194f9a79046c538de0--



--===============0019088769==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--===============0019088769==--