From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Table column width and HTML export Date: Tue, 18 Sep 2018 07:26:43 -0400 Message-ID: References: <0460bf4c386942e790d32260cbf0ae7c@health.sdu.dk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005b6e78057623913e" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2E9l-0002wJ-2R for Emacs-orgmode@gnu.org; Tue, 18 Sep 2018 07:27:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2E9k-0005FQ-2F for Emacs-orgmode@gnu.org; Tue, 18 Sep 2018 07:27:00 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:42038) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g2E9j-0005Cl-Pa for Emacs-orgmode@gnu.org; Tue, 18 Sep 2018 07:26:59 -0400 Received: by mail-lj1-x232.google.com with SMTP id f1-v6so1397377ljc.9 for ; Tue, 18 Sep 2018 04:26:59 -0700 (PDT) In-Reply-To: <0460bf4c386942e790d32260cbf0ae7c@health.sdu.dk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Martin Dalgaard Villumsen Cc: Emacs-orgmode@gnu.org --0000000000005b6e78057623913e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 poin= t > 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 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=E2=80=99t know how to add a new class to in org-mode; or= how to > define a custom column (one that is now , , ). > 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=3D"org-center", class=3D"org-left= ", > etc. =E2=80=A6 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. > --0000000000005b6e78057623913e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hell= o,

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 shou= ld be edited manually. I said that ox-html probably needs an update that in= serts the col tag with user-specified col-classes.=C2=A0

=C2=A0I 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 sc= opes the individual columns.=C2=A0

=C2=A0But I don= =E2=80=99t know how to add a new class to <col> in org-mode; or how t= o define a custom column (one that is now <r>, <l>, <c>).=

Right, that needs to b= e investigated. Most likely, at the moment, we cannot set individual classe= s for each column.=C2=A0
<= div class=3D"m_-3305247225024371420WordSection1">

No point in CSS-restyling defau= lt class=3D"org-center", class=3D"org-left", etc. =C2= =A0=E2=80=A6 this would affect columns in other tables

That's a CSS problem. You can se= t a unique class for a table using the attr_html syntax you showed above an= d then set CSS rules only for that table using ".my-table td+td" = and so on.=C2=A0

The org= -* classes you mentioned can be easily overridden or used along with the ne= w classes, based on how the CSS rules are written.=C2=A0
--0000000000005b6e78057623913e--