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.do...@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 _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode