emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Table column width and HTML export


From: Kaushal Modi
Subject: Re: [O] Table column width and HTML export
Date: Tue, 18 Sep 2018 07:26:43 -0400

Hello,

There seems to be quite a bit of confusion.

On Tue, Sep 18, 2018, 6:51 AM Martin Dalgaard Villumsen <address@hidden> 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. 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]