From: Kaushal Modi <kaushal.modi@gmail.com>
To: Martin Dalgaard Villumsen <mvillumsen@health.sdu.dk>
Cc: Emacs-orgmode@gnu.org
Subject: Re: Table column width and HTML export
Date: Tue, 18 Sep 2018 07:26:43 -0400 [thread overview]
Message-ID: <CAFyQvY3R721uFX_ZRJrKhv9jT6WqEwYAUBqJrz11jXhz-ej35g@mail.gmail.com> (raw)
In-Reply-To: <0460bf4c386942e790d32260cbf0ae7c@health.sdu.dk>
[-- Attachment #1: Type: text/plain, Size: 1315 bytes --]
Hello,
There seems to be quite a bit of confusion.
On Tue, Sep 18, 2018, 6:51 AM Martin Dalgaard Villumsen <
mvillumsen@health.sdu.dk> wrote:
> I am not interested in editing the exported HTML file (conflicts the point
> of using org-mode)
>
I did not say that HTML should be edited manually. I said that ox-html
probably needs an update that inserts the col tag with user-specified
col-classes.
> I can add a class to the <table> tag with
>
> #+ATTR_HTML: :class my-table
>
Correct. That class won't help here. You need a class that scopes the
individual columns.
> But I don’t know how to add a new class to <col> in org-mode; or how to
> define a custom column (one that is now <r>, <l>, <c>).
>
Right, that needs to be investigated. Most likely, at the moment, we cannot
set individual classes for each column.
> No point in CSS-restyling default class="org-center", class="org-left",
> etc. … this would affect columns in other tables
>
That's a CSS problem. You can set a unique class for a table using the
attr_html syntax you showed above and then set CSS rules only for that
table using ".my-table td+td" and so on.
The org-* classes you mentioned can be easily overridden or used along with
the new classes, based on how the CSS rules are written.
>
[-- Attachment #2: Type: text/html, Size: 3579 bytes --]
next prev parent reply other threads:[~2018-09-18 11:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-18 7:37 Table column width and HTML export Martin Dalgaard Villumsen
2018-09-18 7:55 ` Eric S Fraga
2018-09-18 10:31 ` Kaushal Modi
2018-09-18 10:51 ` Martin Dalgaard Villumsen
2018-09-18 11:26 ` Kaushal Modi [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-09-18 11:34 Martin Dalgaard Villumsen
2018-09-18 18:25 ` Kaushal Modi
2018-09-19 14:25 ` Martin Dalgaard Villumsen
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=CAFyQvY3R721uFX_ZRJrKhv9jT6WqEwYAUBqJrz11jXhz-ej35g@mail.gmail.com \
--to=kaushal.modi@gmail.com \
--cc=Emacs-orgmode@gnu.org \
--cc=mvillumsen@health.sdu.dk \
/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).