emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Applying inline styles to a section for exported HTML


From: Sebastian Rose
Subject: Re: [Orgmode] Applying inline styles to a section for exported HTML
Date: Sat, 16 Oct 2010 18:45:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Jeff Horn <address@hidden> writes:
> I'm aware we can define #+ATTR_HTML: for styling of divs containing
> images and tables. Is there similar functionality for section divs?
> Simply adding the required option below or above the section didn't do
> the trick.
>
> Since section divs aren't named semantically[1], I can't simply add a
> class style to my CSS file. I basically want to turn a section in my
> org file into a callout/sidebar box. Any ideas?
>
> Best,
> Jeff
>
> [1] What I mean is, a section "* Word" is identified with an id and a
> class of "section-1" or something similar if it is the first section
> in a document. If it had an id of "word", I could simply a style for
> that id in my style sheet.


Maybe custom IDs are your friends?



* A Word on Words
  :PROPERTIES:
  :CUSTOM_ID: word
  :END:

  Content



You can add that property like this:

    C-c C-x p CU TAB



HTH

  Sebastian



reply via email to

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