emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Table export to HTML, column alignment


From: David Maus
Subject: Re: [Orgmode] Table export to HTML, column alignment
Date: Sun, 19 Dec 2010 16:58:03 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

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.... address@hidden
Email..... address@hidden

Attachment: pgpsMvFLM6llh.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]