emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@supelec.fr>
To: Rick Frankel <rick@rickster.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: List items, HTML export
Date: Tue, 29 Oct 2013 21:27:28 +0100	[thread overview]
Message-ID: <CAFgFV9N27QaWM09UP=OzR1goNC86gO2v0pVQgauvBpjmTdb0BA@mail.gmail.com> (raw)
In-Reply-To: <cbbe1ec308c27d41d7f2685bd967d45f@mail.rickster.com>

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

Thanks for the example! Ok, the css is the way to go.

Fabrice




2013/10/29 Rick Frankel <rick@rickster.com>

> On 2013-10-27 15:34, Fabrice Popineau wrote:
>
>> Hi,
>>
>> Is it possible to set class/id on exported UL and LI elements ?
>>
>> If there is a list with 2 levels, is it possible to set it independently ?
>>
>
> Not currently, but in css you can reference the list and sub-list from
> the id of it's wrapper div:
>
> #+BEGIN_SRC org
> ,#+TITLE: Style test
> ,#+OPTIONS: toc:nil
> ,#+HTML_HEAD: <style type="text/css">
> ,#+HTML_HEAD: #text-1 > ul {color: red}
> ,#+HTML_HEAD: #text-1 > ul  ul {color: green}
> ,#+HTML_HEAD: #text-another-heading > ul {color: blue}
> ,#+HTML_HEAD: #text-another-heading > ul  ul {color: magenta}
> ,#+HTML_HEAD: </style>
>
> ,* Test
> - one
> - two
> - two.one
>
> ,* Another
> :PROPERTIES:
> :CUSTOM_ID:       another-heading
> :END:
> - one
> - two
> - two.one
> #+END_SRC
>
> rick
>
>


-- 
Fabrice Popineau
-----------------------------
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------

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

      reply	other threads:[~2013-10-29 20:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-27 19:34 List items, HTML export Fabrice Popineau
2013-10-29 18:02 ` Rick Frankel
2013-10-29 20:27   ` Fabrice Popineau [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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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='CAFgFV9N27QaWM09UP=OzR1goNC86gO2v0pVQgauvBpjmTdb0BA@mail.gmail.com' \
    --to=fabrice.popineau@supelec.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=rick@rickster.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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