From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: Alternate Table Row Colors Date: Sun, 14 Jun 2009 14:11:18 -0500 Message-ID: <20090614191118.GA21190@thinkpad.adamsinfoserv.com> References: <5236d6f90906141200p3f0d21bbxa34d9946c9508b1b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFv6z-0003W4-F9 for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:11:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFv6x-0003Vo-Vf for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:11:25 -0400 Received: from [199.232.76.173] (port=53892 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFv6x-0003Vl-PC for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:11:23 -0400 Received: from squirtle.drak.net ([72.52.144.201]:59429) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MFv6x-0005Rw-Aj for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 15:11:23 -0400 Received: from 206.180.154.148.adsl.hal-pc.org ([206.180.154.148] helo=localhost) by squirtle.drak.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1MFv6o-0004d8-7M for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 14:11:14 -0500 Content-Disposition: inline In-Reply-To: <5236d6f90906141200p3f0d21bbxa34d9946c9508b1b@mail.gmail.com> 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 Not that I'm a CSS expert, but it appears you could do this without changing how Org outputs tables by adding this styling to your CSS. http://www.zorked.com/css/alternating-table-rows-using-css-only/ Quote: tr:nth-child(odd) { background-color: #CCCCCC; } tr:nth-child(even) { background-color: #6699FF; } Good luck! If you make an example, please post it! On Sun, Jun 14, 2009 at 03:00:15PM -0400, Xin Shi wrote: > 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 > _______________________________________________ > 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 ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3