From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Re: Aligning Columns in HTML Export Tables Date: Thu, 21 Oct 2010 02:25:59 +0200 Message-ID: <8739s09yso.fsf@gmx.de> References: <878w1svl7y.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=55191 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8iys-0007bZ-HO for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 20:26:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8iyq-0004WT-Te for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 20:26:06 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:52095 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P8iyq-0004W1-Hi for emacs-orgmode@gnu.org; Wed, 20 Oct 2010 20:26:04 -0400 In-Reply-To: <878w1svl7y.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Wed, 20 Oct 2010 13:16:01 -0400") 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 Bernt Hansen writes: > 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 | I get 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: .... Sebastian