emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <dmaus@ictsoc.de>
To: saptarshi.guha@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: Table export to HTML, column alignment
Date: Sun, 19 Dec 2010 16:58:03 +0100	[thread overview]
Message-ID: <878vzlrbzo.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <AANLkTiks8toyyUMicBiCucFg-YvMWbyjJJDgAOidcqe3@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1567 bytes --]

At Sun, 5 Dec 2010 23:34:30 -0800,
Saptarshi Guha wrote:
>
> Hello,
>
> I would like to align a 2 column table with the left and right columns
> left and right justified.
> Having read [1], I tried
>
> #+ATTR_HTML:  rules="all" frame="none" border="0"
> |--------------------------------+--------------------------------------|
> | <l>                            |                                  <r> |
> | daldladldlaksdlakjdlasjdlajksd | asdasdasSun Dec 05 13:09:05 PST 2010 |
> | dasdasdasdasdaededeadaed       |         Sun Dec 05 13:10:17 PST 2010 |
> | asdasdasdasdas                 |         Sun Dec 05 13:11:07 PST 2010 |
> | dasdaedaededaeda               |         Sun Dec 05 13:13:55 PST 2010 |
> |--------------------------------+--------------------------------------|
> |                                |                                      |
>
> And ran into this issue
>
> 1) It works in org-mode but the exported table still has left align
> for both columns
>
> Is there a CSS way (using id/classes) to get around the above?

Exporting the table to HTML and having the columns aligned works here
with

Org-mode version 7.4 (release_7.4.42.g2a36)

on

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of
 2010-11-03 on potassium, modified by Debian

The table columns have the CSS class 'left' and 'rigth' respectively,
so defining the CSS like:

,----
| td.left { text-align:left; }
| td.right { text-align:right; }
`----

Works.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2010-12-19 15:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06  7:34 Table export to HTML, column alignment Saptarshi Guha
2010-12-19 15:58 ` David Maus [this message]

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=878vzlrbzo.wl%dmaus@ictsoc.de \
    --to=dmaus@ictsoc.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=saptarshi.guha@gmail.com \
    /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).