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'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: <br> =A0</span><br><pre><code><table class=3D"sample"><br><tr= class=3D"d0"><td>One</td><td>Fish</td>= ;</tr><br><tr class=3D"d1"><td>Two</td>&l= t;td>Fish</td></tr><br> <tr class=3D"d0"><td>Red</td><td>Fish<= /td></tr><br><tr class=3D"d1"><td>Blue</t= d><td>Fish</td></tr><br></table><br><br>So, that= in the CSS file, it'll be easier to implement the color:<br> <br></code><code><style type=3D"text/css"><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><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==--