emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vladimir Lomov <lomov.vl@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: HTML table export options essentially undocumented
Date: Tue, 18 Mar 2014 15:41:39 +0900	[thread overview]
Message-ID: <20140318064139.GE6077@smoon> (raw)
In-Reply-To: <f3b641e1-761c-4e66-bbe3-22964116ff59@dewdrop-world.net>

Hello,
** James Harkins [2014-03-18 13:52:10 +0800]:

> The documentation here seems rather un-detailed.

> http://orgmode.org/manual/Tables-in-HTML-export.html#Tables-in-HTML-export

> What I wanted to do was to have vertical rules between all columns, but not
> horizontal rules. Neither this section of the documentation, nor the
> docstring for org-html-table-default-attributes, provide any details on how
> to do this.

> It's a rather busy day and I'm not in the mood to scour through the elisp
> sources, so, could someone please enlighten (and fix the docs)?

AFAIU, in current state table decoration is hard coded into exporter.
But that doesn't mean you cannot change they style. Take a look on this
small example:
------------------------------ 8< ------------------------------
#+TITLE: Table with borders
#+AUTHOR: Vladimir Lomov
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="tbl.css" />

* Small table

| Name         | Address        |
|--------------+----------------|
| Clifford, A. | Kensington Av. |
| Euler, G     | Krechet Str.   |

* CSS Style							   :noexport:

#+BEGIN_SRC css :tangle tbl.css
  table {
    border: solid 1px;
  }
  td {
    border: solid 1px;
  }
#+END_SRC
------------------------------ 8< ------------------------------

How to try: tangle the SRC block and then export the document into HTML.
Open it in any web-browser that supports CSS.

> hjh

---
WBR, Vladimir Lomov

-- 
Some people have a way about them that seems to say: "If I have
only one life to live, let me live it as a jerk."

  reply	other threads:[~2014-03-18  6:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-18  5:52 HTML table export options essentially undocumented James Harkins
2014-03-18  6:41 ` Vladimir Lomov [this message]
2014-03-18  8:46 ` Nicolas Goaziou
2014-03-19 10:08   ` James Harkins
2014-03-19 10:32     ` Bastien

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=20140318064139.GE6077@smoon \
    --to=lomov.vl@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).