From: henry atting <nsmp_01@online.de>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org, henry atting <nsmp_01@online.de>
Subject: Re: export table html centered
Date: Sun, 16 Aug 2009 12:22:42 +0200 [thread overview]
Message-ID: <87tz08hxcd.fsf@online.de> (raw)
In-Reply-To: <6AF0BA90-9287-40BF-97E7-81A65BA92F56@gmail.com> (Carsten Dominik's message of "Sun, 16 Aug 2009 07:06:26 +0200")
On So, Aug 16 2009, Carsten Dominik wrote:
> Hi Henry, Nick,
>
> another way would be this:
>
> #+STYLE: <style>table.center {margin-left:auto; margin-
> right:auto;}</style>
>
> * A centered table
>
> #+ATTR_HTML: class="center"
> | a | b | c |
> |---+---+---|
> | 1 | 2 | 3 |
>
> * An uncentered table
>
> | a | b | c |
> |---+---+---|
> | 1 | 2 | 3 |
>
>
> You can also configure org-export-html-table-tag to add the
> class="center"
> if you want to center all tables.
>
> HTH
>
> - Carsten
>
> On Aug 16, 2009, at 3:13 AM, Nick Dokos wrote:
>
>> Nick Dokos <nicholas.dokos@hp.com> wrote:
>>
>>> ... But if you don't mind using deprecated attributes, and assuming
>>> you want *every* table centered, then customizing
>>>
>>> org-export-table-header-tags
>>>
>>> ...
>>
>> Correction: that should be
>>
>> org-export-html-table-tag
>>
>> Sorry about that - the BIND version below is correct.
>>
>>> should do it. You can also use #+BIND to do it per-file:
>>>
>>> ,----
>>> | #+BIND: org-export-html-table-tag "<table align=\"center\"
>>> border=\"2\" cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\"
>>> frame=\"hsides\">"
>>> | | foo | bar |
>>> | |-----+-----|
>>> | | 1 | 2 |
>>> | | 2 | 5 |
>>> | | 3 | 10 |
>>> `----
>>
>> Thanks,
>> Nick
Hi Nick, hi Dominik,
as I have my own stylesheet I did not deal with the #+STYLE option to
much. But it's very helpful, great.
Many thanks
henry
prev parent reply other threads:[~2009-08-16 10:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-15 16:57 export table html centered henry atting
2009-08-15 19:50 ` Nick Dokos
2009-08-16 1:13 ` Nick Dokos
2009-08-16 5:06 ` Carsten Dominik
2009-08-16 10:22 ` henry atting [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tz08hxcd.fsf@online.de \
--to=nsmp_01@online.de \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).