emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xin Shi <xs32@cornell.edu>
To: emacs-orgmode@gnu.org
Subject: Suggestions on Org-table export-html
Date: Sun, 24 Feb 2008 11:36:41 -0500	[thread overview]
Message-ID: <873ariz4yu.fsf@cornell.edu> (raw)
In-Reply-To: <47BF4998.80604@gmail.com> (Wanrong Lin's message of "Fri\, 22 Feb 2008 17\:15\:52 -0500")

Hi,

When I use the org-table to export-html, I have two suggestions to make the CSS more flexiable (it already done a great job!)

The first one is for flexiable CSS:

The current code in html is:
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">

It'll be flexiable to add another attribute  class="org-table", so that in the CSS file, we can treat these tables specifically. In this way, we'll be able to write in the CSS file like:

table.org-table th {
    background-color: #ECF1FF;
}

without affect the generic web table. 



The second one is for cleaner view on the html table:

Currently, every row is start with <tr>, it'll be nice to have alternate row with class="alt":

<tr> 
...
</tr>

<tr class="alt">
...
</tr>

Then, in the CSS file, we can use:
table tr { background: #e6e6e6;}
table tr.alt {background: #f1f1f1;}

The output html table will looks better then. 


Thanks!

Xin

  parent reply	other threads:[~2008-02-24 16:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-22 22:15 Misaligned Chinese text in column view Wanrong Lin
2008-02-22 22:26 ` Wanrong Lin
2008-02-24 16:36 ` Xin Shi [this message]
2008-02-24 18:25   ` Suggestions on Org-table export-html Phil Jackson
2008-02-24 19:30     ` Xin Shi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873ariz4yu.fsf@cornell.edu \
    --to=xs32@cornell.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).