emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables


From: Sebastian Rose
Subject: Re: [Orgmode] Re: Aligning Columns in HTML Export Tables
Date: Thu, 21 Oct 2010 02:25:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Bernt Hansen <address@hidden> writes:
> Jeff Horn <address@hidden> writes:
>
>> Is there a way to specify a particular column in org-mode that will be
>> exported right-aligned in HTML?
>>
>> | A | B | C |
>> | 1 | 2 | 3 |
>>
>> For the table above, I would like column C right aligned when I export
>> to HTML, but the other column aligned in the default way (left
>> aligned?).
>
> I think this is supposed to work but it seems the exporters do not
> honour the alignment details.
>
> | <l> | <l> | <r> |
> | A   | B   |   C |
> | 1   | 2   |   3 |
> | 12  | 13  | 300 |
> | 9   | 11  |   4 |


I get 

<colgroup><col align="left" /><col align="left" /><col align="right" />
</colgroup>

as expected.

In Opera it works for me, if I remove the styles for `td' from my
stylesheet.  The styles for table data cells will overrule the align
attribute in the col tag.

Current Firefox seems to ignore the align attribute, although it's valid
XHTML.


The only save way to get the alignment right would be to use a "style"
attribute for each and every table cell directly:

   <td style="text-align:right">....




   Sebastian



reply via email to

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