diff options
author | Vladimir Lomov <lomov.vl@gmail.com> | 2013-12-29 07:33:59 +0900 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-12-30 10:35:13 +0100 |
commit | 1813200fc81fa5e0f248407d852f3771fe2d4f6e (patch) | |
tree | 762de92cecf295d6ae21ded39606866ca237a54d | |
parent | 8bb519d9346668b34a3b407fc76204b180588fc6 (diff) | |
download | org-mode-1813200fc81fa5e0f248407d852f3771fe2d4f6e.tar.gz |
ox-html.el: Use classes for caption instead of align
* ox-html.el (org-html-style-default): New classes
caption.t-above and caption.t-bottom.
(org-html-table): Use new classes.
Signed-off-by: Vladimir Lomov <lomov.vl@gmail.com>
-rw-r--r-- | lisp/ox-html.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 44962a5..845fd3c 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -279,6 +279,8 @@ for the JavaScript code in this tag. pre.src-sql:before { content: 'SQL'; } table { border-collapse:collapse; } + caption.t-above { caption-side: top; } + caption.t-bottom { caption-side: bottom; } td, th { vertical-align:top; } th.right { text-align: center; } th.left { text-align: center; } @@ -3255,8 +3257,8 @@ contextual information." (if (equal attributes "") "" (concat " " attributes)) (if (not caption) "" (format (if org-html-table-caption-above - "<caption align=\"above\">%s</caption>" - "<caption align=\"bottom\">%s</caption>") + "<caption class=\"t-above\">%s</caption>" + "<caption class=\"t-bottom\">%s</caption>") (concat "<span class=\"table-number\">" (format (org-html--translate "Table %d:" info) number) |