emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Table export to HTML, column alignment
@ 2010-12-06  7:34 Saptarshi Guha
  2010-12-19 15:58 ` David Maus
  0 siblings, 1 reply; 2+ messages in thread
From: Saptarshi Guha @ 2010-12-06  7:34 UTC (permalink / raw)
  To: emacs-orgmode

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?

Many thanks
Joy

org-version

release_7.3-199-gdf4b7
Org-mode version 7.3 (release_7.3.199.gdf4b7.dirty)









[1] http://orgmode.org/manual/Column-width-and-alignment.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Table export to HTML, column alignment
  2010-12-06  7:34 Table export to HTML, column alignment Saptarshi Guha
@ 2010-12-19 15:58 ` David Maus
  0 siblings, 0 replies; 2+ messages in thread
From: David Maus @ 2010-12-19 15:58 UTC (permalink / raw)
  To: saptarshi.guha; +Cc: emacs-orgmode


[-- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-19 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-06  7:34 Table export to HTML, column alignment Saptarshi Guha
2010-12-19 15:58 ` David Maus

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).