From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Shi 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: 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 ) 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 ; Sun, 14 Jun 2009 12:00:15 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 , such as:
OneFish
TwoFish
RedFish
BlueFish
So, that in the CSS file, it'll be easier to implement the color: 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 Hello Experts,

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'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:
=A0

<table class=3D"sample">
<tr= class=3D"d0"><td>One</td><td>Fish</td>= ;</tr>
<tr class=3D"d1"><td>Two</td>&l= t;td>Fish</td></tr>
<tr class=3D"d0"><td>Red</td><td>Fish<= /td></tr>
<tr class=3D"d1"><td>Blue</t= d><td>Fish</td></tr>
</table>

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

<style type=3D"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: #FCF6C= F;
}
table.sample tr.d1 td {
background-color: #FEFEF2;
}
&= lt;/style>

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

Thanks!

Xin


--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==--