emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] List items, HTML export


From: Fabrice Popineau
Subject: Re: [O] List items, HTML export
Date: Tue, 29 Oct 2013 21:27:28 +0100

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

Fabrice




2013/10/29 Rick Frankel <address@hidden>
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
------------------------------


reply via email to

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