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

Fabrice




2013/10/29 Rick Frankel <r...@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
------------------------------

Reply via email to