From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Re: Aligning Columns in HTML Export Tables Date: Wed, 20 Oct 2010 21:04:44 +0200 Message-ID: <4CBF3D4C.1080508@christianmoe.com> References: <878w1svl7y.fsf@gollum.intra.norang.ca> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=59219 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8dwj-0001BO-01 for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 15:03:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8dwh-0000a5-UH for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 15:03:32 -0400 Received: from mars.hitrost.net ([91.185.193.39]:28447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8dwh-0000TA-Oq for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 15:03:31 -0400 In-Reply-To: <878w1svl7y.fsf@gollum.intra.norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: Jeff Horn , Org-mode ml On 10/20/10 7:16 PM, Bernt Hansen wrote: > Jeff Horn 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. > > | | | | > | A | B | C | > | 1 | 2 | 3 | > | 12 | 13 | 300 | > | 9 | 11 | 4 | > That's what I find. Ironically, the HTML exporter even includes a =colgroup= with a local =align= attribute set on each =col=, but they all get set to ~align="right"~ despite the settings in the table. Not that it matters; e.g. Firefox doesn't honor colgroup formatting anyway. As a CSS workaround for this particular example, you could add this to the header lines: : #+style: -- but it would clearly be nicer if the exporter honored the settings. Yours, CM