emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Samuel Banya" <sbanya@fastmail.com>
To: "Ihor Radchenko" <yantar92@gmail.com>
Cc: Charles Berry <emacs-orgmode@gnu.org>
Subject: Re: Is It Possible To Target ID And Classes With Org Mode Exports?
Date: Sat, 19 Feb 2022 10:49:17 -0500	[thread overview]
Message-ID: <b81a64f0-ff50-4723-9617-0eba2ca4d451@www.fastmail.com> (raw)
In-Reply-To: <87wnhr7zzz.fsf@localhost>

[-- Attachment #1: Type: text/plain, Size: 1454 bytes --]

Hey there,

I used 'C-h r' and found the man page for this under '13.9.12 CSS support' for the Org Mode manual.

Here's the section:
*   In order to add styles to a sub-tree, use the ‘HTML_CONTAINER_CLASS’**
*property to assign a class to the tree.  In order to specify CSS styles**
*for a particular headline, you can use the ID specified in a ‘CUSTOM_ID’**
*property.  You can also assign a specific class to a headline with the**

Thanks for providing this, as I had no idea you can do this, great to know!

Will use this to create some 'flexbox' elements using containers with this in mind :)

Thanks again,


On Sat, Feb 19, 2022, at 8:22 AM, Ihor Radchenko wrote:
> "Samuel Banya" <sbanya@fastmail.com> writes:
> > I'm curious, is it possible to specify a 'ID' or 'Class' attribute for a specific header, or link that you create in Org Mode?
> >
> > Asking since I'm in the process of modifying a CSS stylesheet for a site, but would want more granular control to possible make containers with ID or classes, but it doesn't look possible in Org Mode by default.
> For headline class attribute, see Org manual -> Exporting -> HTML Export -> CSS
> support (HTML_HEADLINE_CLASS property). For headline ID, you can set
> CUSTOM_ID property.
> Links are discussed in
> https://list.orgmode.org/87mtinb2vq.fsf@posteo.net/T/#t
> Best,
> Ihor

[-- Attachment #2: Type: text/html, Size: 2287 bytes --]

      reply	other threads:[~2022-02-19 15:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-19  1:13 Is It Possible To Target ID And Classes With Org Mode Exports? Samuel Banya
2022-02-19 13:22 ` Ihor Radchenko
2022-02-19 15:49   ` Samuel Banya [this message]

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:

  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=b81a64f0-ff50-4723-9617-0eba2ca4d451@www.fastmail.com \
    --to=sbanya@fastmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@gmail.com \


* 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


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).