From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: List items, HTML export Date: Tue, 29 Oct 2013 21:27:28 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1132ef62d03d3f04e9e70cf8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbFtH-00025Z-Gl for emacs-orgmode@gnu.org; Tue, 29 Oct 2013 16:27:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbFtG-0006q3-GJ for emacs-orgmode@gnu.org; Tue, 29 Oct 2013 16:27:51 -0400 Received: from mail-ee0-x232.google.com ([2a00:1450:4013:c00::232]:35202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbFtG-0006po-6u for emacs-orgmode@gnu.org; Tue, 29 Oct 2013 16:27:50 -0400 Received: by mail-ee0-f50.google.com with SMTP id l10so183273eei.9 for ; Tue, 29 Oct 2013 13:27:48 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rick Frankel Cc: "emacs-orgmode@gnu.org" --001a1132ef62d03d3f04e9e70cf8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for the example! Ok, the css is the way to go. Fabrice 2013/10/29 Rick Frankel > 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: > > ,* Test > - one > - two > - two.one > > ,* Another > :PROPERTIES: > :CUSTOM_ID: another-heading > :END: > - one > - two > - two.one > #+END_SRC > > rick > > --=20 Fabrice Popineau ----------------------------- SUPELEC D=E9partement Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 ------------------------------ --001a1132ef62d03d3f04e9e70cf8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks for the example! Ok, the css is the way to go.
=
Fabrice




2013/10/29 Rick Fran= kel <rick@rickster.com>
On 2013-10-27 15:34, Fabri= ce 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 ?<= br>

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=3D"text/css">
,#+HTML_HEAD: #text-1 > ul {color: red}
,#+HTML_HEAD: #text-1 > ul =A0ul {color: green}
,#+HTML_HEAD: #text-another-heading > ul {color: blue}
,#+HTML_HEAD: #text-another-heading > ul =A0ul {color: magenta}
,#+HTML_HEAD: </style>

,* Test
- one
- two
- two.one

,* Another
:PROPERTIES:
:CUSTOM_ID: =A0 =A0 =A0 another-heading
:END:
- one
- two
- two.one
#+END_SRC

rick




-- Fabrice Popineau
-----------------------------
SUPELEC
D=E9partement Informatique
3, rue Joliot Curie
91= 192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212<= /div>
------------------------------

--001a1132ef62d03d3f04e9e70cf8--