Hello Experts,
I took a look in the lisp directory, the related function is in the
org-html.el:
(defun org-format-org-table-html (lines &optional splice)
There it might need a counter for the row in the line
(push (concat "
" ...
I don't know how to continue from here ... Any suggestions from our Lisp
experts?
Thanks!
Xin
On Mon, Jun 15, 2009 at 8:39 AM, Xin Shi wrote:
> Hi Russell,
>
> Thanks for your posting!
>
> Unfortunately, this is quite a new feature for CSS 3, which is not
> supported by the Firefox 3. It would be great if the org-mode can just add
> the class attribute in the .
>
> Xin
>
>
>
> On Sun, Jun 14, 2009 at 3:11 PM, Russell Adams wrote:
>
>> 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:
>> >
>> >
>> >
>> > One | Fish |
>> > Two | Fish |
>> > Red | Fish |
>> > Blue | Fish |
>> >
>> >
>> > 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
>>
>>
>> _______________________________________________
>> 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
>>
>
>