From: Nick Dokos <nicholas.dokos@hp.com>
To: "Stephen J. Barr" <stephenjbarr@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: how to specify table width in HTML export
Date: Tue, 20 Mar 2012 02:53:27 -0400 [thread overview]
Message-ID: <24029.1332226407@alphaville> (raw)
In-Reply-To: Message from "Stephen J. Barr" <stephenjbarr@gmail.com> of "Tue, 20 Mar 2012 02:06:43 EDT." <CAAetZUS6cxmevG4hgfuka6i_9A-TjFdAQucoKiggQcfHJi2DAw@mail.gmail.com>
Stephen J. Barr <stephenjbarr@gmail.com> wrote:
> Hello,
>
> This seems like a simple question but I can't seem to find the answer?
> How do I specify the table width for an org-table that I will export
> to HTML?
>
Not sure about the real HTMl syntax, or whether this is the best
solution (I'd imagine CSS would be better *if* it can be done with CSS)
but the following:
#+ATTR_HTML: width="100"
| col1 | col2 |
|------+------|
| 1 | 3 |
| | |
gets translated into an HTML table with an opening tag like this:
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides" width="100">
Does that do the trick?
Nick
next prev parent reply other threads:[~2012-03-20 6:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-20 6:06 how to specify table width in HTML export Stephen J. Barr
2012-03-20 6:53 ` Nick Dokos [this message]
2012-03-20 7:16 ` Michael Hannon
2012-03-20 14:42 ` Nick Dokos
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=24029.1332226407@alphaville \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=stephenjbarr@gmail.com \
/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).