>The org-* classes you mentioned can be easily overridden or used along with > >the new classes, based on how the CSS rules are written.
How do you in org-mode override/identify the column-class for a single column when you have multiple columns of the same type in the same table?
/Martin
From: Kaushal Modi [mailto:kaushal.modi@gmail.com]
Sent: 18. september 2018 13:27
To: Martin Dalgaard Villumsen <mvillumsen@health.sdu.dk>
Cc: Emacs-orgmode@gnu.org
Subject: Re: [O] Table column width and HTML export
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.